-
-
Notifications
You must be signed in to change notification settings - Fork 175
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?
Conversation
I had not tested this theme on KDE. This fixes the highlighted candidate's color to be coherant with the theme on GNOME.
This is a small correction to #718 |
I have created a theme for GNOME and a theme for KDE, both have been extensively tested on both DEs to ensure a good look on both. |
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 have created a theme for GNOME and a theme for KDE, both have been extensively tested on both DEs to ensure a good look on both.
Is the correct DE theme automatically applied in the correct context?
Consider inspecting the other theme files for fcitx5
, if they also contain several magic values for the colors.
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
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
pagecolor="#ffffff" | |
bordercolor="#000000" |
modules/fcitx5/hm.nix
Outdated
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 comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make the changes without the reformatting?
Right=6 | ||
Top=6 | ||
Bottom=6 | ||
|
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.
HighlightColor=#ffffff | ||
HighlightBackgroundColor=#a5a5a5 |
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 these values should be some Stylix parameter.
Color=#ffffff | ||
BorderColor=#ffffff00 |
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 these values should be some Stylix parameter.
Color=#ffffff | ||
BorderColor=#ffffff00 |
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 these values should be some Stylix parameter.
Color=#c0c0c0 | ||
BorderColor=#ffffff00 |
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 these values should be some Stylix parameter.
Color=#ffffff | ||
BorderColor=#ffffff00 |
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 these values should be some Stylix parameter.
Color=#ffffff | ||
BorderColor=#ffffff00 |
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 these values should be some Stylix parameter.
From what I can see, they do contain these magic values because the SVG files that are imported have all the color information. These colors do not appear to the user because the SVG files mask them. There does not seem to a way to automatically enable the themes depending to the DE. |
Also, some GNOME users might still use the KWin backend because that's the only one supported on GNOME Wayland |
Actually there might be a way to enable these themes depending on what DE is enabled and also making the typography be coherent with the rest of the system by dropping in a custom An example file contains the following:
Some of these the user might want to change independently though |
I had not tested this theme on KDE. This fixes the highlighted candidate's color to be coherant with the theme on GNOME.
Fixes: #718