mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 16:41:04 +01:00
gtk4: don't enable theme by default
This is not officially supported and causes issues in some cases. Also adds a warning to the option.
This commit is contained in:
parent
86ff0ef506
commit
ae9f38e889
10 changed files with 35 additions and 20 deletions
|
|
@ -1,5 +0,0 @@
|
|||
/**
|
||||
* GTK 4 reads the theme configured by gtk-theme-name, but ignores it.
|
||||
* It does however respect user CSS, so import the theme from here.
|
||||
**/
|
||||
@import url("file://@gnome-themes-extra@/share/themes/Adwaita-dark/gtk-4.0/gtk.css");
|
||||
|
|
@ -5,4 +5,3 @@ gtk-cursor-theme-size=24
|
|||
gtk-font-name=Ubuntu 12
|
||||
gtk-icon-theme-name=Adwaita
|
||||
gtk-interface-color-scheme=2
|
||||
gtk-theme-name=Adwaita-dark
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.stateVersion = "26.05";
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
font = {
|
||||
|
|
@ -37,9 +39,5 @@
|
|||
assertFileExists home-files/.config/gtk-4.0/settings.ini
|
||||
assertFileContent home-files/.config/gtk-4.0/settings.ini \
|
||||
${./gtk-global-inheritance-gtk4-expected.ini}
|
||||
|
||||
# Check GTK4 CSS with theme import
|
||||
assertFileExists home-files/.config/gtk-4.0/gtk.css
|
||||
assertFileContent home-files/.config/gtk-4.0/gtk.css ${./gtk-global-inheritance-gtk4-css-expected.css}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,4 +3,3 @@ gtk-cursor-theme-name=Global-Cursor
|
|||
gtk-font-name=GTK4-Font 11
|
||||
gtk-icon-theme-name=Global-Icons
|
||||
gtk-recent-files-limit=20
|
||||
gtk-theme-name=Global-Theme
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
home.stateVersion = "26.05";
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
# Global defaults
|
||||
|
|
@ -46,7 +48,7 @@
|
|||
assertFileContent home-files/.config/gtk-3.0/gtk.css \
|
||||
${./gtk-per-version-override-gtk3-css-expected.css}
|
||||
|
||||
# GTK4 should use overridden font, global theme/icons/cursor
|
||||
# GTK4 should use overridden font, global icons/cursor
|
||||
assertFileExists home-files/.config/gtk-4.0/settings.ini
|
||||
assertFileContent home-files/.config/gtk-4.0/settings.ini \
|
||||
${./gtk-per-version-override-gtk4-expected.ini}
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
{
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = "catppuccin-macchiato-blue-standard";
|
||||
package = pkgs.catppuccin-gtk;
|
||||
};
|
||||
gtk4 = {
|
||||
theme = {
|
||||
name = "catppuccin-macchiato-blue-standard";
|
||||
package = pkgs.catppuccin-gtk;
|
||||
};
|
||||
extraConfig = {
|
||||
gtk-cursor-blink = false;
|
||||
gtk-recent-files-limit = 20;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue