This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UX: make enabling Shell theming and customizing themes more intuitive
Full commit changelog: * refactored `main_window` module * removed 'GNOME Shell' option from `AppTypeDialog` widget * changed Shell theming section design, now it's a single `ExpandRow` widget in `PreferencesGroup` parent with an `ActionRow` with a button to 'Custom Shell Colors' window as a child * splitted most widget groups in `main_window` module into an external modules * disabled `get_default_wallpaper` function in `main_window` module * updated POTFILES
- Loading branch information
Showing
21 changed files
with
426 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using Gtk 4.0; | ||
using Adw 1; | ||
|
||
template GradienceMonetThemingGroup : Adw.PreferencesGroup { | ||
title: _("Monet Engine"); | ||
description: _("Monet is an engine that generates a Material Design 3 palette from extracting image's colors."); | ||
|
||
[header-suffix] | ||
Button apply-button { | ||
valign: center; | ||
label: _("Apply"); | ||
clicked => on_apply_button_clicked(); | ||
} | ||
|
||
Adw.ActionRow file-chooser-row { | ||
title: _("Background Image"); | ||
|
||
[suffix] | ||
Button file-chooser-button { | ||
valign: center; | ||
clicked => on_file_chooser_button_clicked(); | ||
|
||
Box button-content { | ||
spacing: 10; | ||
|
||
Label { | ||
label: _("Choose a File"); | ||
} | ||
|
||
Image { | ||
icon-name: "folder-pictures-symbolic"; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
Gtk.FileChooserNative monet-file-chooser { | ||
title: _("Choose a Image File"); | ||
modal: true; | ||
//response => on_monet_file_chooser_response(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Gtk 4.0; | ||
using Adw 1; | ||
|
||
template GradienceShellPrefsWindow : Adw.PreferencesWindow { | ||
title: _("Custom Shell Theme Colors"); | ||
search-enabled: false; | ||
default-height: 600; | ||
default-width: 500; | ||
modal: true; | ||
|
||
Adw.PreferencesPage { | ||
Adw.PreferencesGroup custom-colors-group { | ||
title: _("Custom Shell Colors"); | ||
description: _("This section allows you to customize colors that will be used in Shell theme."); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Gtk 4.0; | ||
using Adw 1; | ||
|
||
template GradienceShellThemingGroup : Adw.PreferencesGroup { | ||
title: _("GNOME Shell Theming"); | ||
description: _("This section allows you to enable and customize Shell theme look.\nWARNING: Extensions that modify Shell stylesheet can cause issues with themes."); | ||
|
||
Adw.ExpanderRow shell-theming-expander { | ||
title: _("Enable Shell Theming"); | ||
subtitle: _("Enable GNOME Shell theme generator and get access to theme customization options"); | ||
show-enable-switch: true; | ||
|
||
Adw.ActionRow { | ||
title: _("Customize Shell Colors"); | ||
|
||
[suffix] | ||
Button shell-pref-button { | ||
valign: center; | ||
label: _("Open Custom Shell Colors"); | ||
clicked => on_shell_pref_button_clicked(); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.