Skip to content

Commit

Permalink
feat: translucency style squirrel(0.16.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmoonvic committed Feb 8, 2023
1 parent af861e3 commit ee597fc
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 8 deletions.
72 changes: 67 additions & 5 deletions preset_color_schemes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ preset_color_schemes:
light:
name: "light"

candidate_format: "%c.\u2005%@\u2005"

border_width: 6
border_height: 6
corner_radius: 6
hilited_corner_radius: 0 # 高亮圆角
candidate_format: "%c.\u2005%@\u2005" # %c 指编号 %@ 指候选词
hilited_corner_radius: 0
line_spacing: 7
spacing: 3

back_color: 0xeeeeee
border_color: 0xeeeeee
Expand All @@ -20,17 +23,20 @@ preset_color_schemes:
hilited_candidate_back_color: 0xeeeeee

label_color: 0x888888
hilited_candidate_label_color: 0xa0c98915
hilited_candidate_label_color: 0xc98915
comment_text_color: 0x808080

dark:
name: "dark"

candidate_format: "%c.\u2005%@\u2005"

border_width: 6
border_height: 6
corner_radius: 6
hilited_corner_radius: 0 # 高亮圆角
candidate_format: "%c.\u2005%@\u2005" # %c 指编号 %@ 指候选词
hilited_corner_radius: 0
line_spacing: 7
spacing: 3

back_color: 0x252320
border_color: 0x252320
Expand All @@ -46,3 +52,59 @@ preset_color_schemes:
label_color: 0x888888
hilited_candidate_label_color: 0xdaaa43
comment_text_color: 0x808080

light_translucency:
name: "light_translucency"

candidate_format: "%c.\u2005%@\u2005"
translucency: true

border_width: 6
border_height: 6
corner_radius: 6
hilited_corner_radius: 0
line_spacing: 7
spacing: 3

back_color: 0x1affffff
border_color: 0x00ffffff

text_color: 0x333333
hilited_text_color: 0x000000
hilited_back_color: 0x00ffffff

candidate_text_color: 0x000000
hilited_candidate_text_color: 0x7b4d00
hilited_candidate_back_color: 0x00ffffff

label_color: 0x333333
hilited_candidate_label_color: 0x7b4d00
comment_text_color: 0x333333

dark_translucency:
name: "dark_translucency"

candidate_format: "%c.\u2005%@\u2005"
translucency: true

border_width: 6
border_height: 6
corner_radius: 6
hilited_corner_radius: 0
line_spacing: 7
spacing: 3

back_color: 0x80000000
border_color: 0x00000000

text_color: 0xdedddd
hilited_text_color: 0xffffff
hilited_back_color: 0x00000000

candidate_text_color: 0xffffff
hilited_candidate_text_color: 0xecb459
hilited_candidate_back_color: 0x00000000

label_color: 0xdedddd
hilited_candidate_label_color: 0xecb459
comment_text_color: 0xdedddd
7 changes: 4 additions & 3 deletions squirrel.custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ patch:
__include: preset_color_schemes:/

# rime style
style/color_scheme: dark
style/color_scheme_dark: dark
style/color_scheme: light_translucency
style/color_scheme_dark: dark_translucency

style/font_point: 18
style/label_font_point: 14
style/font_face: "PingFangSC-Light"
style/label_font_face: "PingFangSC-Light"

style/horizontal: false
# stacked or linear
style/candidate_list_layout: stacked
style/inline_preedit: false

# disable chinese input in specific programs
Expand Down

0 comments on commit ee597fc

Please sign in to comment.