-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add GTK 4 variant of Greybird-dark #341
base: master
Are you sure you want to change the base?
Changes from all 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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
gtk3_dir = join_paths(theme_path, 'gtk-3.0') | ||
|
||
scss_files = files([ | ||
'_colors-public.scss', | ||
'_colors.scss', | ||
'_common.scss', | ||
'_drawing.scss', | ||
'_gnome-apps.scss', | ||
'_lightdm-gtk-greeter.scss', | ||
'_others.scss', | ||
'_unity.scss', | ||
'_xfce.scss' | ||
]) | ||
|
||
# | ||
# Installing | ||
# | ||
|
||
install_subdir('assets', install_dir: gtk3_dir) | ||
install_subdir('apps', install_dir: gtk3_dir) | ||
install_data('settings.ini', install_dir : gtk3_dir) | ||
|
||
theme_deps += custom_target('Greybird-Dark', | ||
input: 'gtk-contained.scss', | ||
output: 'gtk.css', | ||
command: [ | ||
sassc, sassc_opts, '@INPUT@', '@OUTPUT@' | ||
], | ||
depend_files: scss_files, | ||
build_by_default: true, | ||
install: true, | ||
install_dir: gtk3_dir) | ||
|
||
theme_deps += custom_target('Greybird-Dark-Dark', | ||
input: 'gtk-contained-dark.scss', | ||
output: 'gtk-dark.css', | ||
command: [ | ||
sassc, sassc_opts, '@INPUT@', '@OUTPUT@' | ||
], | ||
depend_files: scss_files, | ||
build_by_default: true, | ||
install: true, | ||
install_dir: gtk3_dir) | ||
|
||
# we're commenting this out because of a meson bug in the version found in Leap | ||
#gtk_dark_gresources = gnome.compile_resources('gtk', 'gtk.gresource.xml', | ||
# source_dir: join_paths(meson.source_root(), 'light/gtk-3.0'), | ||
# install: true, | ||
# gresource_bundle: true, | ||
# install_dir: gtk3_dir) | ||
|
||
gtk_dark_gresources = custom_target('gtk-dark-gresources', | ||
input: 'gtk.gresource.xml', | ||
output: 'gtk.gresource', | ||
command: [ | ||
glib_compile_resources, '@INPUT@', '--target', '@OUTPUT@', '--sourcedir', meson.current_source_dir() | ||
], | ||
build_by_default: true, | ||
install: true, | ||
install_dir: gtk3_dir) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../light/gtk-4.0/Gemfile | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../light/gtk-4.0/README |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../light/gtk-4.0/_colors-public.scss |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../light/gtk-4.0/_colors.scss |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../light/gtk-4.0/_common.scss | ||
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. Commas in function parameters should be followed by one space |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../light/gtk-4.0/_drawing.scss |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../light/gtk-4.0/apps/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../light/gtk-4.0/assets/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../light/gtk-4.0/gtk-contained-dark.scss | ||
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. Prefer double-quoted strings |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// General guidelines: | ||
// - very unlikely you want to edit something else than _common.scss | ||
// - keep the number of defined colors to a minimum, use the color blending functions if | ||
// you need a subtle shade | ||
// - if you need to inverse a color function use the @if directive to match for dark $variant | ||
|
||
$variant: 'dark'; | ||
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. Prefer double-quoted strings |
||
|
||
@import 'colors'; | ||
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. Prefer double-quoted strings |
||
@import 'drawing'; | ||
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. Prefer double-quoted strings |
||
@import 'common'; | ||
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. Prefer double-quoted strings |
||
@import 'colors-public'; | ||
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. Prefer double-quoted strings |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../light/gtk-4.0/gtk-dark.scss | ||
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. Prefer double-quoted strings |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../light/gtk-4.0/gtk.gresource.xml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../light/gtk-4.0/gtk.scss | ||
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. Prefer double-quoted strings |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
gtk4_dir = join_paths(theme_path, 'gtk-4.0') | ||
|
||
scss_files = files([ | ||
'_colors-public.scss', | ||
'_colors.scss', | ||
'_common.scss', | ||
'_drawing.scss' | ||
]) | ||
|
||
# | ||
# Installing | ||
# | ||
|
||
install_subdir('assets', install_dir: gtk4_dir) | ||
install_subdir('apps', install_dir: gtk4_dir) | ||
|
||
theme_deps += custom_target('Greybird-Dark', | ||
input: 'gtk-contained.scss', | ||
output: 'gtk.css', | ||
command: [ | ||
sassc, sassc_opts, '@INPUT@', '@OUTPUT@' | ||
], | ||
depend_files: scss_files, | ||
build_by_default: true, | ||
install: true, | ||
install_dir: gtk4_dir) | ||
|
||
theme_deps += custom_target('Greybird-Dark-Dark', | ||
input: 'gtk-contained-dark.scss', | ||
output: 'gtk-dark.css', | ||
command: [ | ||
sassc, sassc_opts, '@INPUT@', '@OUTPUT@' | ||
], | ||
depend_files: scss_files, | ||
build_by_default: true, | ||
install: true, | ||
install_dir: gtk4_dir) | ||
|
||
# we're commenting this out because of a meson bug in the version found in Leap | ||
#gtk_dark_gresources = gnome.compile_resources('gtk', 'gtk.gresource.xml', | ||
# source_dir: join_paths(meson.source_root(), 'light/gtk-3.0'), | ||
# install: true, | ||
# gresource_bundle: true, | ||
# install_dir: gtk4_dir) | ||
|
||
gtk_dark_gresources = custom_target('gtk-dark-gresources', | ||
input: 'gtk.gresource.xml', | ||
output: 'gtk.gresource', | ||
command: [ | ||
glib_compile_resources, '@INPUT@', '--target', '@OUTPUT@', '--sourcedir', meson.current_source_dir() | ||
], | ||
build_by_default: true, | ||
install: true, | ||
install_dir: gtk4_dir) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ $variant: 'dark'; | |
@import 'drawing'; | ||
@import 'common'; | ||
@import 'colors-public'; | ||
@import 'gnome-apps'; |
This file was deleted.
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.
Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.