Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ endif
BIN = cosmic-settings-daemon
SYSTEM_ACTIONS_CONF = "$(DESTDIR)$(sharedir)/cosmic/com.system76.CosmicSettings.Shortcuts/v1/system_actions"
POLKIT_RULE = "$(DESTDIR)$(sharedir)/polkit-1/rules.d/cosmic-settings-daemon.rules"
GSETTINGS_OVERRIDE = "$(DESTDIR)$(sharedir)/glib-2.0/schemas/30_com.system76.Cosmic.gschema.override"

all: $(BIN)

Expand All @@ -37,6 +38,7 @@ install:
install -Dm0755 "$(CARGO_TARGET_DIR)/$(TARGET)/$(BIN)" "$(DESTDIR)$(bindir)/$(BIN)"
install -Dm0644 "data/system_actions.ron" "$(SYSTEM_ACTIONS_CONF)"
install -Dm0644 "data/polkit-1/rules.d/cosmic-settings-daemon.rules" "$(POLKIT_RULE)"
install -Dm0644 "data/30_com.system76.Cosmic.gschema.override" "$(GSETTINGS_OVERRIDE)"

## Cargo Vendoring

Expand Down
5 changes: 5 additions & 0 deletions data/30_com.system76.Cosmic.gschema.override
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[org.gnome.desktop.interface:COSMIC]
icon-theme='Cosmic'

[org.gnome.desktop.wm.preferences:COSMIC]
button-layout=':minimize,maximize,close'
3 changes: 0 additions & 3 deletions src/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ pub async fn watch_theme(
}
};

set_gnome_button_layout(tk.show_maximize, tk.show_minimize);
set_gnome_icon_theme(tk.icon_theme.clone());

let light_helper = CosmicTheme::light_config()?;
let dark_helper = CosmicTheme::dark_config()?;

Expand Down