├── README.md ├── __pycache__ └── chcolor.cpython-39.pyc ├── arrow.png ├── base.conf ├── highlight.png ├── imgs ├── aqua.png ├── blue.png ├── green.png ├── orenge.png ├── purple.png ├── red.png └── yellow.png ├── next.png ├── panel.png ├── prev.png ├── radio.png ├── separator-aqua.png ├── separator-blue.png ├── separator-green.png ├── separator-purple.png ├── separator-red.png ├── separator-yellow.png ├── theme-aqua.conf ├── theme-blue.conf ├── theme-green.conf ├── theme-purple.conf ├── theme-red.conf ├── theme-yellow.conf ├── theme.conf └── theme.py /README.md: -------------------------------------------------------------------------------- 1 | # fcitx5-gruvbox-dark-theme 2 | 3 | fcitx5 gruvbox 主题 4 | ## 安装 5 | 6 | 1. git 克隆 7 | 8 | ```sh 9 | git clone https://github.com/zpyg/fcitx5-gruvbox-dark-theme ~/.local/share/fcitx5/themes/gruvbox-dark --depth=1 10 | ``` 11 | 12 | 2. 设置主题色(可选,默认为 aqua) 13 | 14 | ```sh 15 | cd ~/.local/share/fcitx5/themes/gruvbox-dark 16 | ln -sf ./theme-'颜色'.conf theme.conf 17 | ``` 18 | 19 | 3. 设置主题 20 | 21 | > FILE: ~/.config/fcitx5/conf/classicui.conf 22 | ```conf 23 | Theme=gruvbox-dark 24 | ``` 25 | 26 | 4. 重启 fcitx 27 | 28 | ## 自定义 29 | 30 | 你可以在 `theme.py:THEMES` 中定义新的主题, 使用 `gentheme` 生成。 31 | 32 | ## 截图 33 | 34 | ### aqua 35 | 36 | ![aqua](imgs/aqua.png) 37 | 38 | ### blue 39 | 40 | ![blue](imgs/blue.png) 41 | 42 | ### green 43 | 44 | ![green](imgs/green.png) 45 | 46 | ### orange 47 | 48 | ![orange](imgs/orenge.png) 49 | 50 | ### purple 51 | 52 | ![purple](imgs/purple.png) 53 | 54 | ### red 55 | 56 | ![red](imgs/red.png) 57 | 58 | ### yellow 59 | 60 | ![yellow](imgs/yellow.png) 61 | 62 | ## 问题 63 | 64 | + picom 背景透明 65 | 66 | 添加配置文件 67 | > FILE: ~/.config/picom/picom.conf 68 | ```conf 69 | fcitx5 = { shadow = false; }; 70 | ``` 71 | 72 | ## 参考 73 | 74 | [Fcitx5-Material-Color](https://github.com/hosxy/Fcitx5-Material-Color) 75 | -------------------------------------------------------------------------------- /__pycache__/chcolor.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/__pycache__/chcolor.cpython-39.pyc -------------------------------------------------------------------------------- /arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/arrow.png -------------------------------------------------------------------------------- /base.conf: -------------------------------------------------------------------------------- 1 | [Metadata] 2 | # 名称 3 | Name=gruvbox 4 | # 版本 5 | Version=2.2 6 | # 作者 7 | Author=Pu 8 | # 描述 9 | Description="gruvbox for fcitx5" 10 | # 根据屏幕 DPI 缩放 11 | ScaleWithDPI=True 12 | 13 | [General] 14 | # 托盘字体 15 | TrayFont="Sans 11" 16 | 17 | [InputPanel] 18 | # 字体 19 | Font="Sans 11" 20 | # 一般文字颜色 21 | NormalColor=#ebdbb2 22 | # 高亮候选词颜色 23 | HighlightCandidateColor=#282828 24 | # KWin 下启用模糊 25 | EnableBlur=False 26 | # 竖排列表时使用所有横向空间高亮 27 | FullWidthHighlight=True 28 | # 高亮文字颜色 29 | HighlightColor=#ebdbb2 30 | # 高亮背景颜色 31 | HighlightBackgroundColor=#282828 32 | 33 | [InputPanel/Background] 34 | # 颜色 35 | Color=#282828 36 | # 边框颜色 37 | BorderColor= 38 | # 边框宽度 39 | BorderWidth=1 40 | 41 | [InputPanel/Background/Margin] 42 | # 左边距 43 | Left=2 44 | # 右侧边距 45 | Right=2 46 | # 顶部边距 47 | Top=2 48 | # 底部边距 49 | Bottom=2 50 | 51 | [InputPanel/Background/OverlayClipMargin] 52 | # 左边距 53 | Left=0 54 | # 右侧边距 55 | Right=0 56 | # 顶部边距 57 | Top=0 58 | # 底部边距 59 | Bottom=0 60 | 61 | [InputPanel/Highlight] 62 | # 颜色 63 | Color= 64 | 65 | [InputPanel/Highlight/Margin] 66 | # 左边距 67 | Left=5 68 | # 右侧边距 69 | Right=5 70 | # 顶部边距 71 | Top=5 72 | # 底部边距 73 | Bottom=5 74 | 75 | [InputPanel/Highlight/OverlayClipMargin] 76 | # 左边距 77 | Left=0 78 | # 右侧边距 79 | Right=0 80 | # 顶部边距 81 | Top=0 82 | # 底部边距 83 | Bottom=0 84 | 85 | [InputPanel/Highlight/HighlightClickMargin] 86 | # 左边距 87 | Left=0 88 | # 右侧边距 89 | Right=0 90 | # 顶部边距 91 | Top=0 92 | # 底部边距 93 | Bottom=0 94 | 95 | [InputPanel/ContentMargin] 96 | # 左边距 97 | Left=2 98 | # 右侧边距 99 | Right=2 100 | # 顶部边距 101 | Top=2 102 | # 底部边距 103 | Bottom=2 104 | 105 | [InputPanel/TextMargin] 106 | # 左边距 107 | Left=5 108 | # 右侧边距 109 | Right=5 110 | # 顶部边距 111 | Top=5 112 | # 底部边距 113 | Bottom=5 114 | 115 | [InputPanel/PrevPage/ClickMargin] 116 | # 左边距 117 | Left=5 118 | # 右侧边距 119 | Right=5 120 | # 顶部边距 121 | Top=4 122 | # 底部边距 123 | Bottom=4 124 | 125 | [InputPanel/NextPage/ClickMargin] 126 | # 左边距 127 | Left=5 128 | # 右侧边距 129 | Right=5 130 | # 顶部边距 131 | Top=4 132 | # 底部边距 133 | Bottom=4 134 | 135 | [InputPanel/BlurMargin] 136 | # 左边距 137 | Left=0 138 | # 右侧边距 139 | Right=0 140 | # 顶部边距 141 | Top=0 142 | # 底部边距 143 | Bottom=0 144 | 145 | [Menu] 146 | # 一般文字颜色 147 | NormalColor=#ebdbb2 148 | # 高亮候选词颜色 149 | HighlightCandidateColor=#282828 150 | # 间隔 151 | Spacing=1 152 | 153 | [Menu/Background] 154 | # 颜色 155 | Color=#282828 156 | # 边框颜色 157 | BorderColor=#a89984 158 | # 边框宽度 159 | BorderWidth=1 160 | 161 | [Menu/Background/Margin] 162 | # 左边距 163 | Left=10 164 | # 右侧边距 165 | Right=10 166 | # 顶部边距 167 | Top=10 168 | # 底部边距 169 | Bottom=10 170 | 171 | [Menu/Background/OverlayClipMargin] 172 | # 左边距 173 | Left=0 174 | # 右侧边距 175 | Right=0 176 | # 顶部边距 177 | Top=0 178 | # 底部边距 179 | Bottom=0 180 | 181 | [Menu/Highlight] 182 | # 颜色 183 | Color= 184 | 185 | [Menu/Highlight/Margin] 186 | # 左边距 187 | Left=0 188 | # 右侧边距 189 | Right=0 190 | # 顶部边距 191 | Top=0 192 | # 底部边距 193 | Bottom=0 194 | 195 | [Menu/Highlight/OverlayClipMargin] 196 | # 左边距 197 | Left=0 198 | # 右侧边距 199 | Right=0 200 | # 顶部边距 201 | Top=0 202 | # 底部边距 203 | Bottom=0 204 | 205 | [Menu/Separator] 206 | Image= 207 | 208 | [Menu/Separator/Margin] 209 | # 左边距 210 | Left=0 211 | # 右侧边距 212 | Right=0 213 | # 顶部边距 214 | Top=0 215 | # 底部边距 216 | Bottom=0 217 | 218 | [Menu/Separator/OverlayClipMargin] 219 | # 左边距 220 | Left=0 221 | # 右侧边距 222 | Right=0 223 | # 顶部边距 224 | Top=0 225 | # 底部边距 226 | Bottom=0 227 | 228 | [Menu/CheckBox] 229 | Image=radio.png 230 | 231 | [Menu/CheckBox/Margin] 232 | # 左边距 233 | Left=0 234 | # 右侧边距 235 | Right=0 236 | # 顶部边距 237 | Top=0 238 | # 底部边距 239 | Bottom=0 240 | 241 | [Menu/CheckBox/OverlayClipMargin] 242 | # 左边距 243 | Left=0 244 | # 右侧边距 245 | Right=0 246 | # 顶部边距 247 | Top=0 248 | # 底部边距 249 | Bottom=0 250 | 251 | [Menu/SubMenu] 252 | # 颜色 253 | Color=#ebdbb2 254 | Image=arrow.png 255 | 256 | [Menu/SubMenu/Margin] 257 | # 左边距 258 | Left=0 259 | # 右侧边距 260 | Right=0 261 | # 顶部边距 262 | Top=0 263 | # 底部边距 264 | Bottom=0 265 | 266 | [Menu/SubMenu/OverlayClipMargin] 267 | # 左边距 268 | Left=0 269 | # 右侧边距 270 | Right=0 271 | # 顶部边距 272 | Top=0 273 | # 底部边距 274 | Bottom=0 275 | 276 | [Menu/ContentMargin] 277 | # 左边距 278 | Left=2 279 | # 右侧边距 280 | Right=2 281 | # 顶部边距 282 | Top=2 283 | # 底部边距 284 | Bottom=2 285 | 286 | [Menu/TextMargin] 287 | # 左边距 288 | Left=2 289 | # 右侧边距 290 | Right=2 291 | # 顶部边距 292 | Top=2 293 | # 底部边距 294 | Bottom=2 295 | -------------------------------------------------------------------------------- /highlight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/highlight.png -------------------------------------------------------------------------------- /imgs/aqua.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/imgs/aqua.png -------------------------------------------------------------------------------- /imgs/blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/imgs/blue.png -------------------------------------------------------------------------------- /imgs/green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/imgs/green.png -------------------------------------------------------------------------------- /imgs/orenge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/imgs/orenge.png -------------------------------------------------------------------------------- /imgs/purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/imgs/purple.png -------------------------------------------------------------------------------- /imgs/red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/imgs/red.png -------------------------------------------------------------------------------- /imgs/yellow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/imgs/yellow.png -------------------------------------------------------------------------------- /next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/next.png -------------------------------------------------------------------------------- /panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/panel.png -------------------------------------------------------------------------------- /prev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/prev.png -------------------------------------------------------------------------------- /radio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/radio.png -------------------------------------------------------------------------------- /separator-aqua.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/separator-aqua.png -------------------------------------------------------------------------------- /separator-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/separator-blue.png -------------------------------------------------------------------------------- /separator-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/separator-green.png -------------------------------------------------------------------------------- /separator-purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/separator-purple.png -------------------------------------------------------------------------------- /separator-red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/separator-red.png -------------------------------------------------------------------------------- /separator-yellow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pu-007/fcitx5-gruvbox-dark-theme/a301ac5e263529473522f4f067c083059dea5e52/separator-yellow.png -------------------------------------------------------------------------------- /theme-aqua.conf: -------------------------------------------------------------------------------- 1 | [Metadata] 2 | # 名称 3 | Name=gruvbox 4 | # 版本 5 | Version=2.2 6 | # 作者 7 | Author=Pu 8 | # 描述 9 | Description="gruvbox for fcitx5" 10 | # 根据屏幕 DPI 缩放 11 | ScaleWithDPI=True 12 | 13 | [General] 14 | # 托盘字体 15 | TrayFont="Sans 13" 16 | 17 | [InputPanel] 18 | # 字体 19 | Font="Sans 11" 20 | # 一般文字颜色 21 | NormalColor=#ebdbb2 22 | # 高亮候选词颜色 23 | HighlightCandidateColor=#282828 24 | # KWin 下启用模糊 25 | EnableBlur=False 26 | # 竖排列表时使用所有横向空间高亮 27 | FullWidthHighlight=True 28 | # 高亮文字颜色 29 | HighlightColor=#ebdbb2 30 | # 高亮背景颜色 31 | HighlightBackgroundColor=#282828 32 | 33 | [InputPanel/Background] 34 | # 颜色 35 | Color=#282828 36 | # 边框颜色 37 | BorderColor=#8ec07c 38 | # 边框宽度 39 | BorderWidth=1 40 | 41 | [InputPanel/Background/Margin] 42 | # 左边距 43 | Left=2 44 | # 右侧边距 45 | Right=2 46 | # 顶部边距 47 | Top=2 48 | # 底部边距 49 | Bottom=2 50 | 51 | [InputPanel/Background/OverlayClipMargin] 52 | # 左边距 53 | Left=0 54 | # 右侧边距 55 | Right=0 56 | # 顶部边距 57 | Top=0 58 | # 底部边距 59 | Bottom=0 60 | 61 | [InputPanel/Highlight] 62 | # 颜色 63 | Color=#68976a 64 | 65 | [InputPanel/Highlight/Margin] 66 | # 左边距 67 | Left=5 68 | # 右侧边距 69 | Right=5 70 | # 顶部边距 71 | Top=5 72 | # 底部边距 73 | Bottom=5 74 | 75 | [InputPanel/Highlight/OverlayClipMargin] 76 | # 左边距 77 | Left=0 78 | # 右侧边距 79 | Right=0 80 | # 顶部边距 81 | Top=0 82 | # 底部边距 83 | Bottom=0 84 | 85 | [InputPanel/Highlight/HighlightClickMargin] 86 | # 左边距 87 | Left=0 88 | # 右侧边距 89 | Right=0 90 | # 顶部边距 91 | Top=0 92 | # 底部边距 93 | Bottom=0 94 | 95 | [InputPanel/ContentMargin] 96 | # 左边距 97 | Left=2 98 | # 右侧边距 99 | Right=2 100 | # 顶部边距 101 | Top=2 102 | # 底部边距 103 | Bottom=2 104 | 105 | [InputPanel/TextMargin] 106 | # 左边距 107 | Left=5 108 | # 右侧边距 109 | Right=5 110 | # 顶部边距 111 | Top=5 112 | # 底部边距 113 | Bottom=5 114 | 115 | [InputPanel/PrevPage/ClickMargin] 116 | # 左边距 117 | Left=5 118 | # 右侧边距 119 | Right=5 120 | # 顶部边距 121 | Top=4 122 | # 底部边距 123 | Bottom=4 124 | 125 | [InputPanel/NextPage/ClickMargin] 126 | # 左边距 127 | Left=5 128 | # 右侧边距 129 | Right=5 130 | # 顶部边距 131 | Top=4 132 | # 底部边距 133 | Bottom=4 134 | 135 | [InputPanel/BlurMargin] 136 | # 左边距 137 | Left=0 138 | # 右侧边距 139 | Right=0 140 | # 顶部边距 141 | Top=0 142 | # 底部边距 143 | Bottom=0 144 | 145 | [Menu] 146 | # 一般文字颜色 147 | NormalColor=#ebdbb2 148 | # 高亮候选词颜色 149 | HighlightCandidateColor=#282828 150 | # 间隔 151 | Spacing=1 152 | 153 | [Menu/Background] 154 | # 颜色 155 | Color=#282828 156 | # 边框颜色 157 | BorderColor=#a89984 158 | # 边框宽度 159 | BorderWidth=1 160 | 161 | [Menu/Background/Margin] 162 | # 左边距 163 | Left=10 164 | # 右侧边距 165 | Right=10 166 | # 顶部边距 167 | Top=10 168 | # 底部边距 169 | Bottom=10 170 | 171 | [Menu/Background/OverlayClipMargin] 172 | # 左边距 173 | Left=0 174 | # 右侧边距 175 | Right=0 176 | # 顶部边距 177 | Top=0 178 | # 底部边距 179 | Bottom=0 180 | 181 | [Menu/Highlight] 182 | # 颜色 183 | Color=#68976a 184 | 185 | [Menu/Highlight/Margin] 186 | # 左边距 187 | Left=0 188 | # 右侧边距 189 | Right=0 190 | # 顶部边距 191 | Top=0 192 | # 底部边距 193 | Bottom=0 194 | 195 | [Menu/Highlight/OverlayClipMargin] 196 | # 左边距 197 | Left=0 198 | # 右侧边距 199 | Right=0 200 | # 顶部边距 201 | Top=0 202 | # 底部边距 203 | Bottom=0 204 | 205 | [Menu/Separator] 206 | Image=separator-aqua.png 207 | 208 | [Menu/Separator/Margin] 209 | # 左边距 210 | Left=0 211 | # 右侧边距 212 | Right=0 213 | # 顶部边距 214 | Top=0 215 | # 底部边距 216 | Bottom=0 217 | 218 | [Menu/Separator/OverlayClipMargin] 219 | # 左边距 220 | Left=0 221 | # 右侧边距 222 | Right=0 223 | # 顶部边距 224 | Top=0 225 | # 底部边距 226 | Bottom=0 227 | 228 | [Menu/CheckBox] 229 | Image=radio.png 230 | 231 | [Menu/CheckBox/Margin] 232 | # 左边距 233 | Left=0 234 | # 右侧边距 235 | Right=0 236 | # 顶部边距 237 | Top=0 238 | # 底部边距 239 | Bottom=0 240 | 241 | [Menu/CheckBox/OverlayClipMargin] 242 | # 左边距 243 | Left=0 244 | # 右侧边距 245 | Right=0 246 | # 顶部边距 247 | Top=0 248 | # 底部边距 249 | Bottom=0 250 | 251 | [Menu/SubMenu] 252 | # 颜色 253 | Color=#ebdbb2 254 | Image=arrow.png 255 | 256 | [Menu/SubMenu/Margin] 257 | # 左边距 258 | Left=0 259 | # 右侧边距 260 | Right=0 261 | # 顶部边距 262 | Top=0 263 | # 底部边距 264 | Bottom=0 265 | 266 | [Menu/SubMenu/OverlayClipMargin] 267 | # 左边距 268 | Left=0 269 | # 右侧边距 270 | Right=0 271 | # 顶部边距 272 | Top=0 273 | # 底部边距 274 | Bottom=0 275 | 276 | [Menu/ContentMargin] 277 | # 左边距 278 | Left=2 279 | # 右侧边距 280 | Right=2 281 | # 顶部边距 282 | Top=2 283 | # 底部边距 284 | Bottom=2 285 | 286 | [Menu/TextMargin] 287 | # 左边距 288 | Left=2 289 | # 右侧边距 290 | Right=2 291 | # 顶部边距 292 | Top=2 293 | # 底部边距 294 | Bottom=2 295 | -------------------------------------------------------------------------------- /theme-blue.conf: -------------------------------------------------------------------------------- 1 | [Metadata] 2 | # 名称 3 | Name=gruvbox 4 | # 版本 5 | Version=2.2 6 | # 作者 7 | Author=Pu 8 | # 描述 9 | Description="gruvbox for fcitx5" 10 | # 根据屏幕 DPI 缩放 11 | ScaleWithDPI=True 12 | 13 | [General] 14 | # 托盘字体 15 | TrayFont="Sans 13" 16 | 17 | [InputPanel] 18 | # 字体 19 | Font="Sans 11" 20 | # 一般文字颜色 21 | NormalColor=#ebdbb2 22 | # 高亮候选词颜色 23 | HighlightCandidateColor=#282828 24 | # KWin 下启用模糊 25 | EnableBlur=False 26 | # 竖排列表时使用所有横向空间高亮 27 | FullWidthHighlight=True 28 | # 高亮文字颜色 29 | HighlightColor=#ebdbb2 30 | # 高亮背景颜色 31 | HighlightBackgroundColor=#282828 32 | 33 | [InputPanel/Background] 34 | # 颜色 35 | Color=#282828 36 | # 边框颜色 37 | BorderColor=#83a598 38 | # 边框宽度 39 | BorderWidth=1 40 | 41 | [InputPanel/Background/Margin] 42 | # 左边距 43 | Left=2 44 | # 右侧边距 45 | Right=2 46 | # 顶部边距 47 | Top=2 48 | # 底部边距 49 | Bottom=2 50 | 51 | [InputPanel/Background/OverlayClipMargin] 52 | # 左边距 53 | Left=0 54 | # 右侧边距 55 | Right=0 56 | # 顶部边距 57 | Top=0 58 | # 底部边距 59 | Bottom=0 60 | 61 | [InputPanel/Highlight] 62 | # 颜色 63 | Color=#458588 64 | 65 | [InputPanel/Highlight/Margin] 66 | # 左边距 67 | Left=5 68 | # 右侧边距 69 | Right=5 70 | # 顶部边距 71 | Top=5 72 | # 底部边距 73 | Bottom=5 74 | 75 | [InputPanel/Highlight/OverlayClipMargin] 76 | # 左边距 77 | Left=0 78 | # 右侧边距 79 | Right=0 80 | # 顶部边距 81 | Top=0 82 | # 底部边距 83 | Bottom=0 84 | 85 | [InputPanel/Highlight/HighlightClickMargin] 86 | # 左边距 87 | Left=0 88 | # 右侧边距 89 | Right=0 90 | # 顶部边距 91 | Top=0 92 | # 底部边距 93 | Bottom=0 94 | 95 | [InputPanel/ContentMargin] 96 | # 左边距 97 | Left=2 98 | # 右侧边距 99 | Right=2 100 | # 顶部边距 101 | Top=2 102 | # 底部边距 103 | Bottom=2 104 | 105 | [InputPanel/TextMargin] 106 | # 左边距 107 | Left=5 108 | # 右侧边距 109 | Right=5 110 | # 顶部边距 111 | Top=5 112 | # 底部边距 113 | Bottom=5 114 | 115 | [InputPanel/PrevPage/ClickMargin] 116 | # 左边距 117 | Left=5 118 | # 右侧边距 119 | Right=5 120 | # 顶部边距 121 | Top=4 122 | # 底部边距 123 | Bottom=4 124 | 125 | [InputPanel/NextPage/ClickMargin] 126 | # 左边距 127 | Left=5 128 | # 右侧边距 129 | Right=5 130 | # 顶部边距 131 | Top=4 132 | # 底部边距 133 | Bottom=4 134 | 135 | [InputPanel/BlurMargin] 136 | # 左边距 137 | Left=0 138 | # 右侧边距 139 | Right=0 140 | # 顶部边距 141 | Top=0 142 | # 底部边距 143 | Bottom=0 144 | 145 | [Menu] 146 | # 一般文字颜色 147 | NormalColor=#ebdbb2 148 | # 高亮候选词颜色 149 | HighlightCandidateColor=#282828 150 | # 间隔 151 | Spacing=1 152 | 153 | [Menu/Background] 154 | # 颜色 155 | Color=#282828 156 | # 边框颜色 157 | BorderColor=#a89984 158 | # 边框宽度 159 | BorderWidth=1 160 | 161 | [Menu/Background/Margin] 162 | # 左边距 163 | Left=10 164 | # 右侧边距 165 | Right=10 166 | # 顶部边距 167 | Top=10 168 | # 底部边距 169 | Bottom=10 170 | 171 | [Menu/Background/OverlayClipMargin] 172 | # 左边距 173 | Left=0 174 | # 右侧边距 175 | Right=0 176 | # 顶部边距 177 | Top=0 178 | # 底部边距 179 | Bottom=0 180 | 181 | [Menu/Highlight] 182 | # 颜色 183 | Color=#458588 184 | 185 | [Menu/Highlight/Margin] 186 | # 左边距 187 | Left=0 188 | # 右侧边距 189 | Right=0 190 | # 顶部边距 191 | Top=0 192 | # 底部边距 193 | Bottom=0 194 | 195 | [Menu/Highlight/OverlayClipMargin] 196 | # 左边距 197 | Left=0 198 | # 右侧边距 199 | Right=0 200 | # 顶部边距 201 | Top=0 202 | # 底部边距 203 | Bottom=0 204 | 205 | [Menu/Separator] 206 | Image=separator-blue.png 207 | 208 | [Menu/Separator/Margin] 209 | # 左边距 210 | Left=0 211 | # 右侧边距 212 | Right=0 213 | # 顶部边距 214 | Top=0 215 | # 底部边距 216 | Bottom=0 217 | 218 | [Menu/Separator/OverlayClipMargin] 219 | # 左边距 220 | Left=0 221 | # 右侧边距 222 | Right=0 223 | # 顶部边距 224 | Top=0 225 | # 底部边距 226 | Bottom=0 227 | 228 | [Menu/CheckBox] 229 | Image=radio.png 230 | 231 | [Menu/CheckBox/Margin] 232 | # 左边距 233 | Left=0 234 | # 右侧边距 235 | Right=0 236 | # 顶部边距 237 | Top=0 238 | # 底部边距 239 | Bottom=0 240 | 241 | [Menu/CheckBox/OverlayClipMargin] 242 | # 左边距 243 | Left=0 244 | # 右侧边距 245 | Right=0 246 | # 顶部边距 247 | Top=0 248 | # 底部边距 249 | Bottom=0 250 | 251 | [Menu/SubMenu] 252 | # 颜色 253 | Color=#ebdbb2 254 | Image=arrow.png 255 | 256 | [Menu/SubMenu/Margin] 257 | # 左边距 258 | Left=0 259 | # 右侧边距 260 | Right=0 261 | # 顶部边距 262 | Top=0 263 | # 底部边距 264 | Bottom=0 265 | 266 | [Menu/SubMenu/OverlayClipMargin] 267 | # 左边距 268 | Left=0 269 | # 右侧边距 270 | Right=0 271 | # 顶部边距 272 | Top=0 273 | # 底部边距 274 | Bottom=0 275 | 276 | [Menu/ContentMargin] 277 | # 左边距 278 | Left=2 279 | # 右侧边距 280 | Right=2 281 | # 顶部边距 282 | Top=2 283 | # 底部边距 284 | Bottom=2 285 | 286 | [Menu/TextMargin] 287 | # 左边距 288 | Left=2 289 | # 右侧边距 290 | Right=2 291 | # 顶部边距 292 | Top=2 293 | # 底部边距 294 | Bottom=2 295 | -------------------------------------------------------------------------------- /theme-green.conf: -------------------------------------------------------------------------------- 1 | [Metadata] 2 | # 名称 3 | Name=gruvbox 4 | # 版本 5 | Version=2.2 6 | # 作者 7 | Author=Pu 8 | # 描述 9 | Description="gruvbox for fcitx5" 10 | # 根据屏幕 DPI 缩放 11 | ScaleWithDPI=True 12 | 13 | [General] 14 | # 托盘字体 15 | TrayFont="Sans 13" 16 | 17 | [InputPanel] 18 | # 字体 19 | Font="Sans 11" 20 | # 一般文字颜色 21 | NormalColor=#ebdbb2 22 | # 高亮候选词颜色 23 | HighlightCandidateColor=#282828 24 | # KWin 下启用模糊 25 | EnableBlur=False 26 | # 竖排列表时使用所有横向空间高亮 27 | FullWidthHighlight=True 28 | # 高亮文字颜色 29 | HighlightColor=#ebdbb2 30 | # 高亮背景颜色 31 | HighlightBackgroundColor=#282828 32 | 33 | [InputPanel/Background] 34 | # 颜色 35 | Color=#282828 36 | # 边框颜色 37 | BorderColor=#b8bb26 38 | # 边框宽度 39 | BorderWidth=1 40 | 41 | [InputPanel/Background/Margin] 42 | # 左边距 43 | Left=2 44 | # 右侧边距 45 | Right=2 46 | # 顶部边距 47 | Top=2 48 | # 底部边距 49 | Bottom=2 50 | 51 | [InputPanel/Background/OverlayClipMargin] 52 | # 左边距 53 | Left=0 54 | # 右侧边距 55 | Right=0 56 | # 顶部边距 57 | Top=0 58 | # 底部边距 59 | Bottom=0 60 | 61 | [InputPanel/Highlight] 62 | # 颜色 63 | Color=#98971a 64 | 65 | [InputPanel/Highlight/Margin] 66 | # 左边距 67 | Left=5 68 | # 右侧边距 69 | Right=5 70 | # 顶部边距 71 | Top=5 72 | # 底部边距 73 | Bottom=5 74 | 75 | [InputPanel/Highlight/OverlayClipMargin] 76 | # 左边距 77 | Left=0 78 | # 右侧边距 79 | Right=0 80 | # 顶部边距 81 | Top=0 82 | # 底部边距 83 | Bottom=0 84 | 85 | [InputPanel/Highlight/HighlightClickMargin] 86 | # 左边距 87 | Left=0 88 | # 右侧边距 89 | Right=0 90 | # 顶部边距 91 | Top=0 92 | # 底部边距 93 | Bottom=0 94 | 95 | [InputPanel/ContentMargin] 96 | # 左边距 97 | Left=2 98 | # 右侧边距 99 | Right=2 100 | # 顶部边距 101 | Top=2 102 | # 底部边距 103 | Bottom=2 104 | 105 | [InputPanel/TextMargin] 106 | # 左边距 107 | Left=5 108 | # 右侧边距 109 | Right=5 110 | # 顶部边距 111 | Top=5 112 | # 底部边距 113 | Bottom=5 114 | 115 | [InputPanel/PrevPage/ClickMargin] 116 | # 左边距 117 | Left=5 118 | # 右侧边距 119 | Right=5 120 | # 顶部边距 121 | Top=4 122 | # 底部边距 123 | Bottom=4 124 | 125 | [InputPanel/NextPage/ClickMargin] 126 | # 左边距 127 | Left=5 128 | # 右侧边距 129 | Right=5 130 | # 顶部边距 131 | Top=4 132 | # 底部边距 133 | Bottom=4 134 | 135 | [InputPanel/BlurMargin] 136 | # 左边距 137 | Left=0 138 | # 右侧边距 139 | Right=0 140 | # 顶部边距 141 | Top=0 142 | # 底部边距 143 | Bottom=0 144 | 145 | [Menu] 146 | # 一般文字颜色 147 | NormalColor=#ebdbb2 148 | # 高亮候选词颜色 149 | HighlightCandidateColor=#282828 150 | # 间隔 151 | Spacing=1 152 | 153 | [Menu/Background] 154 | # 颜色 155 | Color=#282828 156 | # 边框颜色 157 | BorderColor=#a89984 158 | # 边框宽度 159 | BorderWidth=1 160 | 161 | [Menu/Background/Margin] 162 | # 左边距 163 | Left=10 164 | # 右侧边距 165 | Right=10 166 | # 顶部边距 167 | Top=10 168 | # 底部边距 169 | Bottom=10 170 | 171 | [Menu/Background/OverlayClipMargin] 172 | # 左边距 173 | Left=0 174 | # 右侧边距 175 | Right=0 176 | # 顶部边距 177 | Top=0 178 | # 底部边距 179 | Bottom=0 180 | 181 | [Menu/Highlight] 182 | # 颜色 183 | Color=#98971a 184 | 185 | [Menu/Highlight/Margin] 186 | # 左边距 187 | Left=0 188 | # 右侧边距 189 | Right=0 190 | # 顶部边距 191 | Top=0 192 | # 底部边距 193 | Bottom=0 194 | 195 | [Menu/Highlight/OverlayClipMargin] 196 | # 左边距 197 | Left=0 198 | # 右侧边距 199 | Right=0 200 | # 顶部边距 201 | Top=0 202 | # 底部边距 203 | Bottom=0 204 | 205 | [Menu/Separator] 206 | Image=separator-green.png 207 | 208 | [Menu/Separator/Margin] 209 | # 左边距 210 | Left=0 211 | # 右侧边距 212 | Right=0 213 | # 顶部边距 214 | Top=0 215 | # 底部边距 216 | Bottom=0 217 | 218 | [Menu/Separator/OverlayClipMargin] 219 | # 左边距 220 | Left=0 221 | # 右侧边距 222 | Right=0 223 | # 顶部边距 224 | Top=0 225 | # 底部边距 226 | Bottom=0 227 | 228 | [Menu/CheckBox] 229 | Image=radio.png 230 | 231 | [Menu/CheckBox/Margin] 232 | # 左边距 233 | Left=0 234 | # 右侧边距 235 | Right=0 236 | # 顶部边距 237 | Top=0 238 | # 底部边距 239 | Bottom=0 240 | 241 | [Menu/CheckBox/OverlayClipMargin] 242 | # 左边距 243 | Left=0 244 | # 右侧边距 245 | Right=0 246 | # 顶部边距 247 | Top=0 248 | # 底部边距 249 | Bottom=0 250 | 251 | [Menu/SubMenu] 252 | # 颜色 253 | Color=#ebdbb2 254 | Image=arrow.png 255 | 256 | [Menu/SubMenu/Margin] 257 | # 左边距 258 | Left=0 259 | # 右侧边距 260 | Right=0 261 | # 顶部边距 262 | Top=0 263 | # 底部边距 264 | Bottom=0 265 | 266 | [Menu/SubMenu/OverlayClipMargin] 267 | # 左边距 268 | Left=0 269 | # 右侧边距 270 | Right=0 271 | # 顶部边距 272 | Top=0 273 | # 底部边距 274 | Bottom=0 275 | 276 | [Menu/ContentMargin] 277 | # 左边距 278 | Left=2 279 | # 右侧边距 280 | Right=2 281 | # 顶部边距 282 | Top=2 283 | # 底部边距 284 | Bottom=2 285 | 286 | [Menu/TextMargin] 287 | # 左边距 288 | Left=2 289 | # 右侧边距 290 | Right=2 291 | # 顶部边距 292 | Top=2 293 | # 底部边距 294 | Bottom=2 295 | -------------------------------------------------------------------------------- /theme-purple.conf: -------------------------------------------------------------------------------- 1 | [Metadata] 2 | # 名称 3 | Name=gruvbox 4 | # 版本 5 | Version=2.2 6 | # 作者 7 | Author=Pu 8 | # 描述 9 | Description="gruvbox for fcitx5" 10 | # 根据屏幕 DPI 缩放 11 | ScaleWithDPI=True 12 | 13 | [General] 14 | # 托盘字体 15 | TrayFont="Sans 13" 16 | 17 | [InputPanel] 18 | # 字体 19 | Font="Sans 11" 20 | # 一般文字颜色 21 | NormalColor=#ebdbb2 22 | # 高亮候选词颜色 23 | HighlightCandidateColor=#282828 24 | # KWin 下启用模糊 25 | EnableBlur=False 26 | # 竖排列表时使用所有横向空间高亮 27 | FullWidthHighlight=True 28 | # 高亮文字颜色 29 | HighlightColor=#ebdbb2 30 | # 高亮背景颜色 31 | HighlightBackgroundColor=#282828 32 | 33 | [InputPanel/Background] 34 | # 颜色 35 | Color=#282828 36 | # 边框颜色 37 | BorderColor=#d3869b 38 | # 边框宽度 39 | BorderWidth=1 40 | 41 | [InputPanel/Background/Margin] 42 | # 左边距 43 | Left=2 44 | # 右侧边距 45 | Right=2 46 | # 顶部边距 47 | Top=2 48 | # 底部边距 49 | Bottom=2 50 | 51 | [InputPanel/Background/OverlayClipMargin] 52 | # 左边距 53 | Left=0 54 | # 右侧边距 55 | Right=0 56 | # 顶部边距 57 | Top=0 58 | # 底部边距 59 | Bottom=0 60 | 61 | [InputPanel/Highlight] 62 | # 颜色 63 | Color=#b16286 64 | 65 | [InputPanel/Highlight/Margin] 66 | # 左边距 67 | Left=5 68 | # 右侧边距 69 | Right=5 70 | # 顶部边距 71 | Top=5 72 | # 底部边距 73 | Bottom=5 74 | 75 | [InputPanel/Highlight/OverlayClipMargin] 76 | # 左边距 77 | Left=0 78 | # 右侧边距 79 | Right=0 80 | # 顶部边距 81 | Top=0 82 | # 底部边距 83 | Bottom=0 84 | 85 | [InputPanel/Highlight/HighlightClickMargin] 86 | # 左边距 87 | Left=0 88 | # 右侧边距 89 | Right=0 90 | # 顶部边距 91 | Top=0 92 | # 底部边距 93 | Bottom=0 94 | 95 | [InputPanel/ContentMargin] 96 | # 左边距 97 | Left=2 98 | # 右侧边距 99 | Right=2 100 | # 顶部边距 101 | Top=2 102 | # 底部边距 103 | Bottom=2 104 | 105 | [InputPanel/TextMargin] 106 | # 左边距 107 | Left=5 108 | # 右侧边距 109 | Right=5 110 | # 顶部边距 111 | Top=5 112 | # 底部边距 113 | Bottom=5 114 | 115 | [InputPanel/PrevPage/ClickMargin] 116 | # 左边距 117 | Left=5 118 | # 右侧边距 119 | Right=5 120 | # 顶部边距 121 | Top=4 122 | # 底部边距 123 | Bottom=4 124 | 125 | [InputPanel/NextPage/ClickMargin] 126 | # 左边距 127 | Left=5 128 | # 右侧边距 129 | Right=5 130 | # 顶部边距 131 | Top=4 132 | # 底部边距 133 | Bottom=4 134 | 135 | [InputPanel/BlurMargin] 136 | # 左边距 137 | Left=0 138 | # 右侧边距 139 | Right=0 140 | # 顶部边距 141 | Top=0 142 | # 底部边距 143 | Bottom=0 144 | 145 | [Menu] 146 | # 一般文字颜色 147 | NormalColor=#ebdbb2 148 | # 高亮候选词颜色 149 | HighlightCandidateColor=#282828 150 | # 间隔 151 | Spacing=1 152 | 153 | [Menu/Background] 154 | # 颜色 155 | Color=#282828 156 | # 边框颜色 157 | BorderColor=#a89984 158 | # 边框宽度 159 | BorderWidth=1 160 | 161 | [Menu/Background/Margin] 162 | # 左边距 163 | Left=10 164 | # 右侧边距 165 | Right=10 166 | # 顶部边距 167 | Top=10 168 | # 底部边距 169 | Bottom=10 170 | 171 | [Menu/Background/OverlayClipMargin] 172 | # 左边距 173 | Left=0 174 | # 右侧边距 175 | Right=0 176 | # 顶部边距 177 | Top=0 178 | # 底部边距 179 | Bottom=0 180 | 181 | [Menu/Highlight] 182 | # 颜色 183 | Color=#b16286 184 | 185 | [Menu/Highlight/Margin] 186 | # 左边距 187 | Left=0 188 | # 右侧边距 189 | Right=0 190 | # 顶部边距 191 | Top=0 192 | # 底部边距 193 | Bottom=0 194 | 195 | [Menu/Highlight/OverlayClipMargin] 196 | # 左边距 197 | Left=0 198 | # 右侧边距 199 | Right=0 200 | # 顶部边距 201 | Top=0 202 | # 底部边距 203 | Bottom=0 204 | 205 | [Menu/Separator] 206 | Image=separator-purple.png 207 | 208 | [Menu/Separator/Margin] 209 | # 左边距 210 | Left=0 211 | # 右侧边距 212 | Right=0 213 | # 顶部边距 214 | Top=0 215 | # 底部边距 216 | Bottom=0 217 | 218 | [Menu/Separator/OverlayClipMargin] 219 | # 左边距 220 | Left=0 221 | # 右侧边距 222 | Right=0 223 | # 顶部边距 224 | Top=0 225 | # 底部边距 226 | Bottom=0 227 | 228 | [Menu/CheckBox] 229 | Image=radio.png 230 | 231 | [Menu/CheckBox/Margin] 232 | # 左边距 233 | Left=0 234 | # 右侧边距 235 | Right=0 236 | # 顶部边距 237 | Top=0 238 | # 底部边距 239 | Bottom=0 240 | 241 | [Menu/CheckBox/OverlayClipMargin] 242 | # 左边距 243 | Left=0 244 | # 右侧边距 245 | Right=0 246 | # 顶部边距 247 | Top=0 248 | # 底部边距 249 | Bottom=0 250 | 251 | [Menu/SubMenu] 252 | # 颜色 253 | Color=#ebdbb2 254 | Image=arrow.png 255 | 256 | [Menu/SubMenu/Margin] 257 | # 左边距 258 | Left=0 259 | # 右侧边距 260 | Right=0 261 | # 顶部边距 262 | Top=0 263 | # 底部边距 264 | Bottom=0 265 | 266 | [Menu/SubMenu/OverlayClipMargin] 267 | # 左边距 268 | Left=0 269 | # 右侧边距 270 | Right=0 271 | # 顶部边距 272 | Top=0 273 | # 底部边距 274 | Bottom=0 275 | 276 | [Menu/ContentMargin] 277 | # 左边距 278 | Left=2 279 | # 右侧边距 280 | Right=2 281 | # 顶部边距 282 | Top=2 283 | # 底部边距 284 | Bottom=2 285 | 286 | [Menu/TextMargin] 287 | # 左边距 288 | Left=2 289 | # 右侧边距 290 | Right=2 291 | # 顶部边距 292 | Top=2 293 | # 底部边距 294 | Bottom=2 295 | -------------------------------------------------------------------------------- /theme-red.conf: -------------------------------------------------------------------------------- 1 | [Metadata] 2 | # 名称 3 | Name=gruvbox 4 | # 版本 5 | Version=2.2 6 | # 作者 7 | Author=Pu 8 | # 描述 9 | Description="gruvbox for fcitx5" 10 | # 根据屏幕 DPI 缩放 11 | ScaleWithDPI=True 12 | 13 | [General] 14 | # 托盘字体 15 | TrayFont="Sans 13" 16 | 17 | [InputPanel] 18 | # 字体 19 | Font="Sans 11" 20 | # 一般文字颜色 21 | NormalColor=#ebdbb2 22 | # 高亮候选词颜色 23 | HighlightCandidateColor=#282828 24 | # KWin 下启用模糊 25 | EnableBlur=False 26 | # 竖排列表时使用所有横向空间高亮 27 | FullWidthHighlight=True 28 | # 高亮文字颜色 29 | HighlightColor=#ebdbb2 30 | # 高亮背景颜色 31 | HighlightBackgroundColor=#282828 32 | 33 | [InputPanel/Background] 34 | # 颜色 35 | Color=#282828 36 | # 边框颜色 37 | BorderColor=#fb4934 38 | # 边框宽度 39 | BorderWidth=1 40 | 41 | [InputPanel/Background/Margin] 42 | # 左边距 43 | Left=2 44 | # 右侧边距 45 | Right=2 46 | # 顶部边距 47 | Top=2 48 | # 底部边距 49 | Bottom=2 50 | 51 | [InputPanel/Background/OverlayClipMargin] 52 | # 左边距 53 | Left=0 54 | # 右侧边距 55 | Right=0 56 | # 顶部边距 57 | Top=0 58 | # 底部边距 59 | Bottom=0 60 | 61 | [InputPanel/Highlight] 62 | # 颜色 63 | Color=#cc241d 64 | 65 | [InputPanel/Highlight/Margin] 66 | # 左边距 67 | Left=5 68 | # 右侧边距 69 | Right=5 70 | # 顶部边距 71 | Top=5 72 | # 底部边距 73 | Bottom=5 74 | 75 | [InputPanel/Highlight/OverlayClipMargin] 76 | # 左边距 77 | Left=0 78 | # 右侧边距 79 | Right=0 80 | # 顶部边距 81 | Top=0 82 | # 底部边距 83 | Bottom=0 84 | 85 | [InputPanel/Highlight/HighlightClickMargin] 86 | # 左边距 87 | Left=0 88 | # 右侧边距 89 | Right=0 90 | # 顶部边距 91 | Top=0 92 | # 底部边距 93 | Bottom=0 94 | 95 | [InputPanel/ContentMargin] 96 | # 左边距 97 | Left=2 98 | # 右侧边距 99 | Right=2 100 | # 顶部边距 101 | Top=2 102 | # 底部边距 103 | Bottom=2 104 | 105 | [InputPanel/TextMargin] 106 | # 左边距 107 | Left=5 108 | # 右侧边距 109 | Right=5 110 | # 顶部边距 111 | Top=5 112 | # 底部边距 113 | Bottom=5 114 | 115 | [InputPanel/PrevPage/ClickMargin] 116 | # 左边距 117 | Left=5 118 | # 右侧边距 119 | Right=5 120 | # 顶部边距 121 | Top=4 122 | # 底部边距 123 | Bottom=4 124 | 125 | [InputPanel/NextPage/ClickMargin] 126 | # 左边距 127 | Left=5 128 | # 右侧边距 129 | Right=5 130 | # 顶部边距 131 | Top=4 132 | # 底部边距 133 | Bottom=4 134 | 135 | [InputPanel/BlurMargin] 136 | # 左边距 137 | Left=0 138 | # 右侧边距 139 | Right=0 140 | # 顶部边距 141 | Top=0 142 | # 底部边距 143 | Bottom=0 144 | 145 | [Menu] 146 | # 一般文字颜色 147 | NormalColor=#ebdbb2 148 | # 高亮候选词颜色 149 | HighlightCandidateColor=#282828 150 | # 间隔 151 | Spacing=1 152 | 153 | [Menu/Background] 154 | # 颜色 155 | Color=#282828 156 | # 边框颜色 157 | BorderColor=#a89984 158 | # 边框宽度 159 | BorderWidth=1 160 | 161 | [Menu/Background/Margin] 162 | # 左边距 163 | Left=10 164 | # 右侧边距 165 | Right=10 166 | # 顶部边距 167 | Top=10 168 | # 底部边距 169 | Bottom=10 170 | 171 | [Menu/Background/OverlayClipMargin] 172 | # 左边距 173 | Left=0 174 | # 右侧边距 175 | Right=0 176 | # 顶部边距 177 | Top=0 178 | # 底部边距 179 | Bottom=0 180 | 181 | [Menu/Highlight] 182 | # 颜色 183 | Color=#cc241d 184 | 185 | [Menu/Highlight/Margin] 186 | # 左边距 187 | Left=0 188 | # 右侧边距 189 | Right=0 190 | # 顶部边距 191 | Top=0 192 | # 底部边距 193 | Bottom=0 194 | 195 | [Menu/Highlight/OverlayClipMargin] 196 | # 左边距 197 | Left=0 198 | # 右侧边距 199 | Right=0 200 | # 顶部边距 201 | Top=0 202 | # 底部边距 203 | Bottom=0 204 | 205 | [Menu/Separator] 206 | Image=separator-red.png 207 | 208 | [Menu/Separator/Margin] 209 | # 左边距 210 | Left=0 211 | # 右侧边距 212 | Right=0 213 | # 顶部边距 214 | Top=0 215 | # 底部边距 216 | Bottom=0 217 | 218 | [Menu/Separator/OverlayClipMargin] 219 | # 左边距 220 | Left=0 221 | # 右侧边距 222 | Right=0 223 | # 顶部边距 224 | Top=0 225 | # 底部边距 226 | Bottom=0 227 | 228 | [Menu/CheckBox] 229 | Image=radio.png 230 | 231 | [Menu/CheckBox/Margin] 232 | # 左边距 233 | Left=0 234 | # 右侧边距 235 | Right=0 236 | # 顶部边距 237 | Top=0 238 | # 底部边距 239 | Bottom=0 240 | 241 | [Menu/CheckBox/OverlayClipMargin] 242 | # 左边距 243 | Left=0 244 | # 右侧边距 245 | Right=0 246 | # 顶部边距 247 | Top=0 248 | # 底部边距 249 | Bottom=0 250 | 251 | [Menu/SubMenu] 252 | # 颜色 253 | Color=#ebdbb2 254 | Image=arrow.png 255 | 256 | [Menu/SubMenu/Margin] 257 | # 左边距 258 | Left=0 259 | # 右侧边距 260 | Right=0 261 | # 顶部边距 262 | Top=0 263 | # 底部边距 264 | Bottom=0 265 | 266 | [Menu/SubMenu/OverlayClipMargin] 267 | # 左边距 268 | Left=0 269 | # 右侧边距 270 | Right=0 271 | # 顶部边距 272 | Top=0 273 | # 底部边距 274 | Bottom=0 275 | 276 | [Menu/ContentMargin] 277 | # 左边距 278 | Left=2 279 | # 右侧边距 280 | Right=2 281 | # 顶部边距 282 | Top=2 283 | # 底部边距 284 | Bottom=2 285 | 286 | [Menu/TextMargin] 287 | # 左边距 288 | Left=2 289 | # 右侧边距 290 | Right=2 291 | # 顶部边距 292 | Top=2 293 | # 底部边距 294 | Bottom=2 295 | -------------------------------------------------------------------------------- /theme-yellow.conf: -------------------------------------------------------------------------------- 1 | [Metadata] 2 | # 名称 3 | Name=gruvbox 4 | # 版本 5 | Version=2.2 6 | # 作者 7 | Author=Pu 8 | # 描述 9 | Description="gruvbox for fcitx5" 10 | # 根据屏幕 DPI 缩放 11 | ScaleWithDPI=True 12 | 13 | [General] 14 | # 托盘字体 15 | TrayFont="Sans 13" 16 | 17 | [InputPanel] 18 | # 字体 19 | Font="Sans 11" 20 | # 一般文字颜色 21 | NormalColor=#ebdbb2 22 | # 高亮候选词颜色 23 | HighlightCandidateColor=#282828 24 | # KWin 下启用模糊 25 | EnableBlur=False 26 | # 竖排列表时使用所有横向空间高亮 27 | FullWidthHighlight=True 28 | # 高亮文字颜色 29 | HighlightColor=#ebdbb2 30 | # 高亮背景颜色 31 | HighlightBackgroundColor=#282828 32 | 33 | [InputPanel/Background] 34 | # 颜色 35 | Color=#282828 36 | # 边框颜色 37 | BorderColor=#fabd2f 38 | # 边框宽度 39 | BorderWidth=1 40 | 41 | [InputPanel/Background/Margin] 42 | # 左边距 43 | Left=2 44 | # 右侧边距 45 | Right=2 46 | # 顶部边距 47 | Top=2 48 | # 底部边距 49 | Bottom=2 50 | 51 | [InputPanel/Background/OverlayClipMargin] 52 | # 左边距 53 | Left=0 54 | # 右侧边距 55 | Right=0 56 | # 顶部边距 57 | Top=0 58 | # 底部边距 59 | Bottom=0 60 | 61 | [InputPanel/Highlight] 62 | # 颜色 63 | Color=#d79921 64 | 65 | [InputPanel/Highlight/Margin] 66 | # 左边距 67 | Left=5 68 | # 右侧边距 69 | Right=5 70 | # 顶部边距 71 | Top=5 72 | # 底部边距 73 | Bottom=5 74 | 75 | [InputPanel/Highlight/OverlayClipMargin] 76 | # 左边距 77 | Left=0 78 | # 右侧边距 79 | Right=0 80 | # 顶部边距 81 | Top=0 82 | # 底部边距 83 | Bottom=0 84 | 85 | [InputPanel/Highlight/HighlightClickMargin] 86 | # 左边距 87 | Left=0 88 | # 右侧边距 89 | Right=0 90 | # 顶部边距 91 | Top=0 92 | # 底部边距 93 | Bottom=0 94 | 95 | [InputPanel/ContentMargin] 96 | # 左边距 97 | Left=2 98 | # 右侧边距 99 | Right=2 100 | # 顶部边距 101 | Top=2 102 | # 底部边距 103 | Bottom=2 104 | 105 | [InputPanel/TextMargin] 106 | # 左边距 107 | Left=5 108 | # 右侧边距 109 | Right=5 110 | # 顶部边距 111 | Top=5 112 | # 底部边距 113 | Bottom=5 114 | 115 | [InputPanel/PrevPage/ClickMargin] 116 | # 左边距 117 | Left=5 118 | # 右侧边距 119 | Right=5 120 | # 顶部边距 121 | Top=4 122 | # 底部边距 123 | Bottom=4 124 | 125 | [InputPanel/NextPage/ClickMargin] 126 | # 左边距 127 | Left=5 128 | # 右侧边距 129 | Right=5 130 | # 顶部边距 131 | Top=4 132 | # 底部边距 133 | Bottom=4 134 | 135 | [InputPanel/BlurMargin] 136 | # 左边距 137 | Left=0 138 | # 右侧边距 139 | Right=0 140 | # 顶部边距 141 | Top=0 142 | # 底部边距 143 | Bottom=0 144 | 145 | [Menu] 146 | # 一般文字颜色 147 | NormalColor=#ebdbb2 148 | # 高亮候选词颜色 149 | HighlightCandidateColor=#282828 150 | # 间隔 151 | Spacing=1 152 | 153 | [Menu/Background] 154 | # 颜色 155 | Color=#282828 156 | # 边框颜色 157 | BorderColor=#a89984 158 | # 边框宽度 159 | BorderWidth=1 160 | 161 | [Menu/Background/Margin] 162 | # 左边距 163 | Left=10 164 | # 右侧边距 165 | Right=10 166 | # 顶部边距 167 | Top=10 168 | # 底部边距 169 | Bottom=10 170 | 171 | [Menu/Background/OverlayClipMargin] 172 | # 左边距 173 | Left=0 174 | # 右侧边距 175 | Right=0 176 | # 顶部边距 177 | Top=0 178 | # 底部边距 179 | Bottom=0 180 | 181 | [Menu/Highlight] 182 | # 颜色 183 | Color=#d79921 184 | 185 | [Menu/Highlight/Margin] 186 | # 左边距 187 | Left=0 188 | # 右侧边距 189 | Right=0 190 | # 顶部边距 191 | Top=0 192 | # 底部边距 193 | Bottom=0 194 | 195 | [Menu/Highlight/OverlayClipMargin] 196 | # 左边距 197 | Left=0 198 | # 右侧边距 199 | Right=0 200 | # 顶部边距 201 | Top=0 202 | # 底部边距 203 | Bottom=0 204 | 205 | [Menu/Separator] 206 | Image=separator-yellow.png 207 | 208 | [Menu/Separator/Margin] 209 | # 左边距 210 | Left=0 211 | # 右侧边距 212 | Right=0 213 | # 顶部边距 214 | Top=0 215 | # 底部边距 216 | Bottom=0 217 | 218 | [Menu/Separator/OverlayClipMargin] 219 | # 左边距 220 | Left=0 221 | # 右侧边距 222 | Right=0 223 | # 顶部边距 224 | Top=0 225 | # 底部边距 226 | Bottom=0 227 | 228 | [Menu/CheckBox] 229 | Image=radio.png 230 | 231 | [Menu/CheckBox/Margin] 232 | # 左边距 233 | Left=0 234 | # 右侧边距 235 | Right=0 236 | # 顶部边距 237 | Top=0 238 | # 底部边距 239 | Bottom=0 240 | 241 | [Menu/CheckBox/OverlayClipMargin] 242 | # 左边距 243 | Left=0 244 | # 右侧边距 245 | Right=0 246 | # 顶部边距 247 | Top=0 248 | # 底部边距 249 | Bottom=0 250 | 251 | [Menu/SubMenu] 252 | # 颜色 253 | Color=#ebdbb2 254 | Image=arrow.png 255 | 256 | [Menu/SubMenu/Margin] 257 | # 左边距 258 | Left=0 259 | # 右侧边距 260 | Right=0 261 | # 顶部边距 262 | Top=0 263 | # 底部边距 264 | Bottom=0 265 | 266 | [Menu/SubMenu/OverlayClipMargin] 267 | # 左边距 268 | Left=0 269 | # 右侧边距 270 | Right=0 271 | # 顶部边距 272 | Top=0 273 | # 底部边距 274 | Bottom=0 275 | 276 | [Menu/ContentMargin] 277 | # 左边距 278 | Left=2 279 | # 右侧边距 280 | Right=2 281 | # 顶部边距 282 | Top=2 283 | # 底部边距 284 | Bottom=2 285 | 286 | [Menu/TextMargin] 287 | # 左边距 288 | Left=2 289 | # 右侧边距 290 | Right=2 291 | # 顶部边距 292 | Top=2 293 | # 底部边距 294 | Bottom=2 295 | -------------------------------------------------------------------------------- /theme.conf: -------------------------------------------------------------------------------- 1 | theme-aqua.conf -------------------------------------------------------------------------------- /theme.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | from PIL import Image 4 | import numpy as np 5 | 6 | # yapf: disable 7 | THEMES = [ 8 | { 9 | "theme_name": "aqua", 10 | "dimmed_color": "#68976a", 11 | "light_color": "#8ec07c" 12 | }, 13 | { 14 | "theme_name": "blue", 15 | "dimmed_color": "#458588", 16 | "light_color": "#83a598" 17 | }, 18 | { 19 | "theme_name": "red", 20 | "dimmed_color": "#cc241d", 21 | "light_color": "#fb4934" 22 | }, 23 | { 24 | "theme_name": "green", 25 | "dimmed_color": "#98971a", 26 | "light_color": "#b8bb26" 27 | }, 28 | { 29 | "theme_name": "yellow", 30 | "dimmed_color": "#d79921", 31 | "light_color": "#fabd2f" 32 | }, 33 | { 34 | "theme_name": "purple", 35 | "dimmed_color": "#b16286", 36 | "light_color": "#d3869b" 37 | }, 38 | ] 39 | # yapf: enable 40 | 41 | 42 | def _hex2rgb(string: str) -> list[int]: 43 | src = string.removeprefix('#') 44 | dst = [] 45 | for i in range(0, 6, 2): 46 | dst.append(int(src[i:i + 2], 16)) 47 | return dst 48 | 49 | 50 | def gentheme(theme_name, dimmed_color, light_color): 51 | # 生成菜单栏分割线 52 | separator_name = "separator-" + theme_name + ".png" 53 | separator = np.full((3, 20, 4), [*_hex2rgb(light_color), 0xff], 54 | dtype=np.uint8) 55 | Image.fromarray(separator).save(separator_name) 56 | # 生成主题文件 57 | with open("./base.conf", "r", encoding="utf-8") as f: 58 | theme = f.read() 59 | theme = theme.replace("", light_color) 60 | theme = theme.replace("", dimmed_color) 61 | theme = theme.replace("", separator_name) 62 | with open("./theme-" + theme_name + ".conf", "w", encoding="utf-8") as f: 63 | f.write(theme) 64 | 65 | if __name__ == "__main__": 66 | for theme in THEMES: 67 | gentheme(**theme) 68 | --------------------------------------------------------------------------------