-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Make elementary themes the default fallback #30
base: main
Are you sure you want to change the base?
Changes from 1 commit
f6651ea
5ced277
d49da5e
eb79a5b
58d7008
133ef80
9c3cf26
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,15 @@ | ||
diff --git a/gtk/gtksettingsprivate.h b/gtk/gtksettingsprivate.h | ||
index 47f75a6297..fd822c630a 100644 | ||
--- a/gtk/gtksettingsprivate.h | ||
+++ b/gtk/gtksettingsprivate.h | ||
@@ -23,8 +23,8 @@ | ||
|
||
G_BEGIN_DECLS | ||
|
||
-#define DEFAULT_THEME_NAME "Adwaita" | ||
-#define DEFAULT_ICON_THEME "Adwaita" | ||
+#define DEFAULT_THEME_NAME "io.elementary.stylesheet.blueberry" | ||
+#define DEFAULT_ICON_THEME "elementary" | ||
|
||
void _gtk_settings_set_property_value_from_rc (GtkSettings *settings, | ||
const gchar *name, |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -41,6 +41,32 @@ | |||||
} | ||||||
}, | ||||||
"modules": [ | ||||||
{ | ||||||
"name": "gtk", | ||||||
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. Not sure exactly what's going on but when trying to build locally it fails like this:
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. @alatiera I guess this is rofiles-fuse preventing modifications to already-existing file. One way to fix this would be adding the path to "ensure-writable": [
"/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache"
] Or just running |
||||||
"buildsystem": "meson", | ||||||
"config-opts": [ | ||||||
"-Dbroadway_backend=true", | ||||||
"-Dinstalled_tests=true", | ||||||
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. we don't need the tests in the runtime 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 took the options from https://gitlab.gnome.org/GNOME/gnome-build-meta/-/blob/master/elements/sdk/gtk+-3.bst 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. Yes, gnome-build-meta acts as project wide CI too so we want to make sure they are built there. We filter the produced binaries out from the runtime afterwards. |
||||||
"-Dtests=false", | ||||||
"-Dx11_backend=true", | ||||||
"-Dwayland-backend=true", | ||||||
"-Dgtk_doc=true", | ||||||
"-Dman=true", | ||||||
"-Dintrospection=true", | ||||||
"-Dtracker3=true" | ||||||
], | ||||||
"sources": [ | ||||||
{ | ||||||
"type": "git", | ||||||
"url": "https://gitlab.gnome.org/GNOME/gtk.git", | ||||||
"tag": "3.24.28" | ||||||
}, | ||||||
{ | ||||||
"type": "patch", | ||||||
"path": "gtk-default-themes.patch" | ||||||
} | ||||||
] | ||||||
}, | ||||||
{ | ||||||
"name": "icons", | ||||||
"buildsystem": "meson", | ||||||
|
@@ -183,6 +209,28 @@ | |||||
"tag": "1.2.0" | ||||||
} | ||||||
] | ||||||
}, | ||||||
{ | ||||||
"name" : "platform-settings", | ||||||
"buildsystem" : "simple", | ||||||
"modules": [ | ||||||
{ | ||||||
"name" : "default-gtk-settings", | ||||||
"buildsystem" : "simple", | ||||||
"sources" : [ | ||||||
{ | ||||||
"type": "git", | ||||||
"url": "https://github.com/elementary/default-settings.git" | ||||||
} | ||||||
], | ||||||
"build-commands": [ | ||||||
"install -Dm644 gtk/settings.ini /etc/gtk-3.0/settings.ini" | ||||||
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 think it would be better if it was installed
Suggested change
|
||||||
] | ||||||
} | ||||||
], | ||||||
"build-commands": [ | ||||||
"ln -S /usr/share/themes/io.elementary.stylesheet.blueberry /usr/share/themes/elementary" | ||||||
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. Where does this help, an app will either be built against eos5 or eos6 right? at which point will it a eos6 app be expecting 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. If the user is on eOS 5 then its theme name will be elementary and might be exported, that helps with the fallback 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. do we want make the same with Adwaita? or is better to remove them from the Sdk and let the fallback manage it? |
||||||
] | ||||||
} | ||||||
] | ||||||
} |
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 don't think there's a non-intentional way to use the icon fallback on flatpak, the host icons folder is mounted on the sandbox, so the selected theme is always found.
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 mean, given the fact Dippi for instance automatically overrides even the icon theme, I wonder if Dippi's strategy can be incorporated directly into the platform.