Commit f763716b authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

theme: Introduce HighContrast style

Since HighContrast is now a variant of Adwaita, we can get HC and HCI
support for free by just importing the SCSS files with its color
overrides.

However, it must be imported after `colors`, but before `drawing`, and
it's not possible to do conditional imports, so move the `colors` import
to the individual theme styles from `definitions`.

Introduce $high_contrast variable, it will be used to add some HC-specific
overrides later.

Fixes #221
parent 59b51e94
......@@ -5,6 +5,8 @@
<file compressed="true">themes/Adwaita.css</file>
<file compressed="true">themes/Adwaita-dark.css</file>
<file compressed="true">themes/fallback.css</file>
<file compressed="true">themes/HighContrast.css</file>
<file compressed="true">themes/HighContrastInverse.css</file>
<file compressed="true">themes/shared.css</file>
</gresource>
<gresource prefix="/sm/puri/handy/ui">
......
$variant: 'dark';
$high_contrast: false;
@import 'colors';
@import 'Adwaita-base';
$variant: 'light';
$high_contrast: false;
@import 'colors';
@import 'Adwaita-base';
This diff is collapsed.
$variant: 'light';
$high_contrast: true;
@import 'colors';
@import 'colors-hc';
@import 'Adwaita-base';
This diff is collapsed.
$variant: 'dark';
$high_contrast: true;
@import 'colors';
@import 'colors-hc';
@import 'Adwaita-base';
@import 'colors';
@import 'drawing';
@function hdyalpha($c, $a) {
......
$variant: 'light';
$high_contrast: false;
@import 'colors';
@import 'fallback-base';
......@@ -36,5 +36,9 @@ sassc $SASSC_OPT -I${GTK_SOURCE_PATH}/gtk/theme/Adwaita \
Adwaita-dark.scss Adwaita-dark.css
sassc $SASSC_OPT -I${GTK_SOURCE_PATH}/gtk/theme/Adwaita \
fallback.scss fallback.css
sassc $SASSC_OPT -I${GTK_SOURCE_PATH}/gtk/theme/Adwaita -I${GTK_SOURCE_PATH}/gtk/theme/HighContrast \
HighContrast.scss HighContrast.css
sassc $SASSC_OPT -I${GTK_SOURCE_PATH}/gtk/theme/Adwaita -I${GTK_SOURCE_PATH}/gtk/theme/HighContrast \
HighContrastInverse.scss HighContrastInverse.css
sassc $SASSC_OPT -I${GTK_SOURCE_PATH}/gtk/theme/Adwaita \
shared.scss shared.css
$variant: 'light';
$high_contrast: false;
@import 'colors';
@import 'shared-base';
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment