mirror of
https://github.com/danth/stylix
synced 2024-11-22 12:13:08 +00:00
Use white text when the black background is enabled ♿
The theme's text colour may not contrast well with black, especially for themes which expect a light coloured background.
This commit is contained in:
parent
c1506122b4
commit
78055b3868
1 changed files with 13 additions and 7 deletions
|
@ -18,13 +18,19 @@ let
|
|||
cp ${config.lib.stylix.pixel "base01"} $themeDir/progress-bar.png
|
||||
|
||||
cp ${./theme.script} $themeDir/stylix.script
|
||||
substituteInPlace $themeDir/stylix.script \
|
||||
--replace "%BASE00%" "${
|
||||
if config.stylix.targets.plymouth.blackBackground
|
||||
then "0, 0, 0"
|
||||
else "${base00-dec-r}, ${base00-dec-g}, ${base00-dec-b}"
|
||||
}" \
|
||||
--replace "%BASE05%" "${base05-dec-r}, ${base05-dec-g}, ${base05-dec-b}"
|
||||
${
|
||||
if config.stylix.targets.plymouth.blackBackground
|
||||
then ''
|
||||
substituteInPlace $themeDir/stylix.script \
|
||||
--replace "%BASE00%" "0, 0, 0" \
|
||||
--replace "%BASE05%" "1, 1, 1"
|
||||
''
|
||||
else ''
|
||||
substituteInPlace $themeDir/stylix.script \
|
||||
--replace "%BASE00%" "${base00-dec-r}, ${base00-dec-g}, ${base00-dec-b}" \
|
||||
--replace "%BASE05%" "${base05-dec-r}, ${base05-dec-g}, ${base05-dec-b}"
|
||||
''
|
||||
}
|
||||
|
||||
echo "
|
||||
[Plymouth Theme]
|
||||
|
|
Loading…
Reference in a new issue