-
-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fctix5: fix highlighted candidate color #724
base: master
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,10 @@ | |
template = ./theme.conf.mustache; | ||
extension = "conf"; | ||
}; | ||
theme-kwin = config.lib.stylix.colors { | ||
template = ./theme-kwin.conf.mustache; | ||
extension = "conf"; | ||
}; | ||
highlight = config.lib.stylix.colors { | ||
template = ./highlight.svg.mustache; | ||
extension = "svg"; | ||
|
@@ -17,17 +21,16 @@ | |
extension = "svg"; | ||
}; | ||
in { | ||
options.stylix.targets.fcitx5.enable = | ||
config.lib.stylix.mkEnableTarget "fcitx5" true; | ||
options.stylix.targets.fcitx5.enable = config.lib.stylix.mkEnableTarget "fcitx5" true; | ||
|
||
config = | ||
lib.mkIf | ||
(config.stylix.enable && config.stylix.targets.fcitx5.enable) | ||
{ | ||
xdg.dataFile = { | ||
"fcitx5/themes/stylix/highlight.svg".source = highlight; | ||
"fcitx5/themes/stylix/panel.svg".source = panel; | ||
"fcitx5/themes/stylix/theme.conf".source = theme; | ||
}; | ||
config = lib.mkIf (config.stylix.enable && config.stylix.targets.fcitx5.enable) { | ||
xdg.dataFile = { | ||
"fcitx5/themes/stylix/theme.conf".source = theme; | ||
"fcitx5/themes/stylix/panel.svg".source = panel; | ||
"fcitx5/themes/stylix/highlight.svg".source = highlight; | ||
"fcitx5/themes/stylix-kwin/theme.conf".source = theme-kwin; | ||
"fcitx5/themes/stylix-kwin/panel.svg".source = panel; | ||
"fcitx5/themes/stylix-kwin/highlight.svg".source = highlight; | ||
}; | ||
}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you make the changes without the reformatting? |
||
} |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -0,0 +1,241 @@ | ||||
[Metadata] | ||||
Name=Stylix (KWin) | ||||
Version=0.1 | ||||
Author="sanweiya and ontake (make-42)" | ||||
Description="Stylix fcitx5 theme based on the mellow-themes by sanweiya" | ||||
|
||||
[InputPanel] | ||||
NormalColor=#{{base05-hex}} | ||||
HighlightCandidateColor=#{{base01-hex}} | ||||
EnableBlur=False | ||||
BlurMask= | ||||
FullWidthHighlight=True | ||||
HighlightColor=#ffffff | ||||
HighlightBackgroundColor=#a5a5a5 | ||||
Comment on lines
+13
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume these values should be some Stylix parameter. |
||||
|
||||
[InputPanel/BlurMargin] | ||||
Left=0 | ||||
Right=0 | ||||
Top=0 | ||||
Bottom=0 | ||||
|
||||
[InputPanel/Background] | ||||
Image=panel.svg | ||||
Color=#ffffff | ||||
BorderColor=#ffffff00 | ||||
Comment on lines
+24
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume these values should be some Stylix parameter. |
||||
BorderWidth=0 | ||||
Overlay= | ||||
Gravity="Top Left" | ||||
OverlayOffsetX=0 | ||||
OverlayOffsetY=0 | ||||
HideOverlayIfOversize=False | ||||
|
||||
[InputPanel/Background/Margin] | ||||
Left=15 | ||||
Right=15 | ||||
Top=15 | ||||
Bottom=15 | ||||
|
||||
[InputPanel/Background/OverlayClipMargin] | ||||
Left=0 | ||||
Right=0 | ||||
Top=0 | ||||
Bottom=0 | ||||
|
||||
[InputPanel/Highlight] | ||||
Image=highlight.svg | ||||
Color=#ffffff | ||||
BorderColor=#ffffff00 | ||||
Comment on lines
+47
to
+48
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume these values should be some Stylix parameter. |
||||
BorderWidth=0 | ||||
Overlay= | ||||
Gravity="Top Left" | ||||
OverlayOffsetX=0 | ||||
OverlayOffsetY=0 | ||||
HideOverlayIfOversize=False | ||||
|
||||
[InputPanel/Highlight/Margin] | ||||
Left=15 | ||||
Right=15 | ||||
Top=10 | ||||
Bottom=10 | ||||
|
||||
[InputPanel/Highlight/OverlayClipMargin] | ||||
Left=0 | ||||
Right=0 | ||||
Top=0 | ||||
Bottom=0 | ||||
|
||||
[InputPanel/Highlight/HighlightClickMargin] | ||||
Left=0 | ||||
Right=0 | ||||
Top=0 | ||||
Bottom=0 | ||||
|
||||
[InputPanel/ContentMargin] | ||||
Left=9 | ||||
Right=9 | ||||
Top=7 | ||||
Bottom=7 | ||||
|
||||
[InputPanel/TextMargin] | ||||
Left=9 | ||||
Right=9 | ||||
Top=6 | ||||
Bottom=7 | ||||
|
||||
[InputPanel/PrevPage] | ||||
Image= | ||||
|
||||
[InputPanel/PrevPage/ClickMargin] | ||||
Left=5 | ||||
Right=5 | ||||
Top=4 | ||||
Bottom=4 | ||||
|
||||
[InputPanel/NextPage] | ||||
Image= | ||||
|
||||
[InputPanel/NextPage/ClickMargin] | ||||
Left=5 | ||||
Right=5 | ||||
Top=4 | ||||
Bottom=4 | ||||
|
||||
[InputPanel/ShadowMargin] | ||||
Left=0 | ||||
Right=0 | ||||
Top=0 | ||||
Bottom=0 | ||||
|
||||
[Menu] | ||||
NormalColor=#000000 | ||||
HighlightCandidateColor=#ffffff | ||||
Comment on lines
+111
to
+112
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume these values should be some Stylix parameter. |
||||
Spacing=0 | ||||
|
||||
[Menu/Background] | ||||
Image=panel.svg | ||||
Color=#ffffff | ||||
BorderColor=#ffffff00 | ||||
Comment on lines
+117
to
+118
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume these values should be some Stylix parameter. |
||||
BorderWidth=0 | ||||
Overlay= | ||||
Gravity="Top Left" | ||||
OverlayOffsetX=0 | ||||
OverlayOffsetY=0 | ||||
HideOverlayIfOversize=False | ||||
|
||||
[Menu/Background/Margin] | ||||
Left=11 | ||||
Right=11 | ||||
Top=11 | ||||
Bottom=11 | ||||
|
||||
[Menu/Background/OverlayClipMargin] | ||||
Left=0 | ||||
Right=0 | ||||
Top=0 | ||||
Bottom=0 | ||||
|
||||
[Menu/Highlight] | ||||
Image=highlight.svg | ||||
Color=#ffffff | ||||
BorderColor=#ffffff00 | ||||
Comment on lines
+140
to
+141
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume these values should be some Stylix parameter. |
||||
BorderWidth=0 | ||||
Overlay= | ||||
Gravity="Top Left" | ||||
OverlayOffsetX=0 | ||||
OverlayOffsetY=0 | ||||
HideOverlayIfOversize=False | ||||
|
||||
[Menu/Highlight/Margin] | ||||
Left=5 | ||||
Right=5 | ||||
Top=5 | ||||
Bottom=5 | ||||
|
||||
[Menu/Highlight/OverlayClipMargin] | ||||
Left=0 | ||||
Right=0 | ||||
Top=0 | ||||
Bottom=0 | ||||
|
||||
[Menu/Separator] | ||||
Image= | ||||
Color=#c0c0c0 | ||||
BorderColor=#ffffff00 | ||||
Comment on lines
+163
to
+164
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume these values should be some Stylix parameter. |
||||
BorderWidth=0 | ||||
Overlay= | ||||
Gravity="Top Left" | ||||
OverlayOffsetX=0 | ||||
OverlayOffsetY=0 | ||||
HideOverlayIfOversize=False | ||||
|
||||
[Menu/Separator/Margin] | ||||
Left=0 | ||||
Right=0 | ||||
Top=0 | ||||
Bottom=0 | ||||
|
||||
[Menu/Separator/OverlayClipMargin] | ||||
Left=0 | ||||
Right=0 | ||||
Top=0 | ||||
Bottom=0 | ||||
|
||||
[Menu/CheckBox] | ||||
Image=radio.svg | ||||
Color=#ffffff | ||||
BorderColor=#ffffff00 | ||||
Comment on lines
+186
to
+187
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume these values should be some Stylix parameter. |
||||
BorderWidth=0 | ||||
Overlay= | ||||
Gravity="Top Left" | ||||
OverlayOffsetX=0 | ||||
OverlayOffsetY=0 | ||||
HideOverlayIfOversize=False | ||||
|
||||
[Menu/CheckBox/Margin] | ||||
Left=0 | ||||
Right=0 | ||||
Top=0 | ||||
Bottom=0 | ||||
|
||||
[Menu/CheckBox/OverlayClipMargin] | ||||
Left=0 | ||||
Right=0 | ||||
Top=0 | ||||
Bottom=0 | ||||
|
||||
[Menu/SubMenu] | ||||
Image=arrow.svg | ||||
Color=#ffffff | ||||
BorderColor=#ffffff00 | ||||
Comment on lines
+209
to
+210
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume these values should be some Stylix parameter. |
||||
BorderWidth=0 | ||||
Overlay= | ||||
Gravity="Top Left" | ||||
OverlayOffsetX=0 | ||||
OverlayOffsetY=0 | ||||
HideOverlayIfOversize=False | ||||
|
||||
[Menu/SubMenu/Margin] | ||||
Left=0 | ||||
Right=0 | ||||
Top=0 | ||||
Bottom=0 | ||||
|
||||
[Menu/SubMenu/OverlayClipMargin] | ||||
Left=0 | ||||
Right=0 | ||||
Top=0 | ||||
Bottom=0 | ||||
|
||||
[Menu/ContentMargin] | ||||
Left=11 | ||||
Right=11 | ||||
Top=11 | ||||
Bottom=11 | ||||
|
||||
[Menu/TextMargin] | ||||
Left=6 | ||||
Right=6 | ||||
Top=6 | ||||
Bottom=6 | ||||
|
||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -137,7 +137,7 @@ Bottom=0 | |||
|
||||
[Menu/Highlight] | ||||
Image=highlight.svg | ||||
Color=#{{base05-hex}} | ||||
Color=#{{base01-hex}} | ||||
BorderColor=#{{base05-hex}}00 | ||||
BorderWidth=0 | ||||
Overlay= | ||||
|
@@ -238,3 +238,4 @@ Left=6 | |||
Right=6 | ||||
Top=6 | ||||
Bottom=6 | ||||
|
||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume the following values should also be some Stylix parameter:
stylix/modules/fcitx5/highlight.svg.mustache
Lines 53 to 54 in c1ad23d