Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GradienceTeam/Gradience
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.4.0
Choose a base ref
...
head repository: GradienceTeam/Gradience
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.4.1
Choose a head ref

Commits on Feb 9, 2023

  1. frontend: change object names in preferences UI file

        * tidy up preferences UI logic code
        * modify note comment in presets manager UI file
    tfuxu committed Feb 9, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    0e6135a View commit details
  2. translate: translated using Weblate (Portuguese (Brazil))

    Currently translated at 56.4% (135 of 239 strings)
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/pt_BR/
    Isaac Dias authored and weblate committed Feb 9, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    2f2b72b View commit details

Commits on Feb 10, 2023

  1. ci: generate .pot file

    GradienceBot committed Feb 10, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    576fa9e View commit details
  2. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 10, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    f6a8cd4 View commit details
  3. translate: translated using Weblate (Finnish)

    Currently translated at 91.6% (219 of 239 strings)
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/fi/
    Jiri Grönroos authored and weblate committed Feb 10, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    deeb131 View commit details
  4. translate: translated using Weblate (French)

    Currently translated at 100.0% (239 of 239 strings)
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/fr/
    rene-coty authored and weblate committed Feb 10, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    a6bceb6 View commit details
  5. ci: generate .pot file

    GradienceBot committed Feb 10, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    350249b View commit details
  6. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 10, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    803cfe9 View commit details

Commits on Feb 11, 2023

  1. ci: generate .pot file

    GradienceBot committed Feb 11, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    ffb8c42 View commit details
  2. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 11, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    5d011c4 View commit details
  3. ci: generate .pot file

    GradienceBot committed Feb 11, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    0623a6b View commit details
  4. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 11, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    00f64eb View commit details
  5. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    bd0fb4a View commit details
  6. meson: configure local build launchers if buildtype is set to debug

        * change CLI local launcher name to `local-gradience-cli`
    tfuxu committed Feb 11, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    75d2a89 View commit details

Commits on Feb 12, 2023

  1. ci: generate .pot file

    GradienceBot committed Feb 12, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    468d0af View commit details
  2. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 12, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    864e1f8 View commit details
  3. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    9302552 View commit details
  4. ci: generate .pot file

    GradienceBot committed Feb 12, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    c95de12 View commit details
  5. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 12, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    d685e48 View commit details

Commits on Feb 13, 2023

  1. ci: generate .pot file

    GradienceBot committed Feb 13, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    30fc2c5 View commit details
  2. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 13, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    f3750e0 View commit details
  3. ci: generate .pot file

    GradienceBot committed Feb 13, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    2d11a60 View commit details
  4. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 13, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    3c91875 View commit details
  5. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    078bb20 View commit details

Commits on Feb 14, 2023

  1. ci: generate .pot file

    GradienceBot committed Feb 14, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    5d63a32 View commit details
  2. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 14, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    52853b5 View commit details
  3. ci: generate .pot file

    GradienceBot committed Feb 14, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    6f0294e View commit details
  4. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 14, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    3104c90 View commit details

Commits on Feb 15, 2023

  1. ci: generate .pot file

    GradienceBot committed Feb 15, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    24163e2 View commit details
  2. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 15, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    86a4212 View commit details
  3. ci: generate .pot file

    GradienceBot committed Feb 15, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    f298cb9 View commit details
  4. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 15, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    a164ce9 View commit details

Commits on Feb 16, 2023

  1. ci: generate .pot file

    GradienceBot committed Feb 16, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    d2839f3 View commit details
  2. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 16, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    ea73423 View commit details
  3. translate: translated using Weblate (Turkish)

    Currently translated at 100.0% (239 of 239 strings)
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/tr/
    yakushabb authored and weblate committed Feb 16, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    9c40ac4 View commit details
  4. ci: generate .pot file

    GradienceBot committed Feb 16, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    224336e View commit details
  5. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 16, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    b3ca17f View commit details

Commits on Feb 17, 2023

  1. ci: generate .pot file

    GradienceBot committed Feb 17, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    232eff8 View commit details
  2. translate: translated using Weblate (Italian)

    Currently translated at 100.0% (239 of 239 strings)
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/it/
    phaerrax authored and weblate committed Feb 17, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    51f8d13 View commit details
  3. Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    10fe6a0 View commit details
  4. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 17, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    25f0107 View commit details
  5. ci: generate .pot file

    GradienceBot committed Feb 17, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    0e985c6 View commit details
  6. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 17, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    bd64e93 View commit details

Commits on Feb 18, 2023

  1. ci: generate .pot file

    GradienceBot committed Feb 18, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    8808316 View commit details
  2. translate: translated using Weblate (German)

    Currently translated at 45.6% (109 of 239 strings)
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/de/
    gnesterif authored and weblate committed Feb 18, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    164ce17 View commit details
  3. translate: translated using Weblate (German)

    Currently translated at 45.6% (109 of 239 strings)
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/de/
    zPhoeniqz authored and weblate committed Feb 18, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    5430cc5 View commit details
  4. Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    7d00b16 View commit details
  5. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 18, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    9eb59f2 View commit details
  6. ci: generate .pot file

    GradienceBot committed Feb 18, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    2b689f4 View commit details
  7. translate: update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: Gradience/Gradience
    Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
    weblate committed Feb 18, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weblate Weblate (bot)
    Copy the full SHA
    ed6b004 View commit details
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -93,7 +93,7 @@ body:
- type: textarea
attributes:
label: Enabled system extensions (GNOME specific)
description: "Paste here a list of enabled extensions (required if you're using GNOME)."
description: "Please paste here a list of enabled extensions, unless you know that this information won't be needed in your issue."
placeholder: "Use `gnome-extensions list --enabled` command to get a list."

- type: textarea
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -244,6 +244,16 @@ You can see the meaning of Gradience on [Wiktionary](https://en.wiktionary.org/w

The icon represents: _A Paint Roller repainting an Adwaita window, keeping it's functionality._

## 🖌️ About the "Pretty Purple"

The Pretty Purple theme comes from the very beginning, directly from the original author of Gradience, [Artyom Fomin](https://github.com/ArtyIF).

It were called "Purple Guy", presumably as a reference to the FNaF. later it were renamed to Pretty Purple.

Pretty Purple preset were originally shared in the https://github.com/GradienceTeam/Gradience/discussions/23.

Pretty Purple is built-in in the Gradience and used in all Gradience artworks.


## 🌱️ Gradience, [stopthemingmy.app](https://stopthemingmy.app) and Adwaita Developers

20 changes: 14 additions & 6 deletions data/com.github.GradienceTeam.Gradience.appdata.xml.in.in
Original file line number Diff line number Diff line change
@@ -21,16 +21,24 @@
</description>
<screenshots>
<screenshot>
<caption>Screenshot of "Colors" Tab</caption>
<image type="source">https://raw.githubusercontent.com/GradienceTeam/Design/main/Screenshots/colors_purple.png</image>
<caption>Screenshot of "Colors" Tab of Main UI</caption>
<image type="source">https://raw.githubusercontent.com/GradienceTeam/Design/main/Screenshots/Appdata/main-ui-colors.png</image>
</screenshot>
<screenshot>
<caption>Screenshot of "Monet" Tab</caption>
<image type="source">https://raw.githubusercontent.com/GradienceTeam/Design/main/Screenshots/monet_purple.png</image>
<caption>Screenshot of "Monet" Tab of Main UI</caption>
<image type="source">https://raw.githubusercontent.com/GradienceTeam/Design/main/Screenshots/Appdata/main-ui-monet.png</image>
</screenshot>
<screenshot>
<caption>Screenshot of "Advanced" Tab</caption>
<image type="source">https://raw.githubusercontent.com/GradienceTeam/Design/main/Screenshots/advanced_purple.png</image>
<caption>Screenshot of "Advanced" Tab of Main UI</caption>
<image type="source">https://raw.githubusercontent.com/GradienceTeam/Design/main/Screenshots/Appdata/main-ui-advanced.png</image>
</screenshot>
<screenshot>
<caption>Screenshot of "Installed" Tab of Preset Manager</caption>
<image type="source">https://raw.githubusercontent.com/GradienceTeam/Design/main/Screenshots/Appdata/preset-manager-installed.png</image>
</screenshot>
<screenshot>
<caption>Screenshot of "Explore" Tab of Preset Manager</caption>
<image type="source">https://raw.githubusercontent.com/GradienceTeam/Design/main/Screenshots/Appdata/preset-manager-explore.png</image>
</screenshot>
</screenshots>
<releases>
4 changes: 2 additions & 2 deletions data/ui/error_list_row.blp
Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@ template GradienceErrorListRow : ListBoxRow {
orientation: vertical;
margin-top: 6;
margin-bottom: 6;
margin-start: 12;
margin-end: 12;
margin-start: 6;
margin-end: 6;

Box {
orientation: horizontal;
21 changes: 11 additions & 10 deletions data/ui/option_row.blp
Original file line number Diff line number Diff line change
@@ -49,11 +49,11 @@ template GradienceOptionRow : Adw.ActionRow {
Popover warning-popover {
autohide: true;
Label warning-label {
margin-top: 10;
margin-start: 10;
margin-end: 10;
margin-bottom: 10;
max-width-chars: 50;
margin-top: 6;
margin-bottom: 6;
margin-start: 6;
margin-end: 6;
max-width-chars: 30;
wrap: true;
justify: center;
}
@@ -62,12 +62,13 @@ Popover warning-popover {
Popover explanation-popover {
autohide: true;
Label explanation-label {
margin-top: 10;
margin-start: 10;
margin-end: 10;
margin-bottom: 10;
max-width-chars: 50;
margin-top: 6;
margin-bottom: 6;
margin-start: 6;
margin-end: 6;
max-width-chars: 30;
wrap: true;
justify: center;
}
}

19 changes: 10 additions & 9 deletions data/ui/preferences_window.blp
Original file line number Diff line number Diff line change
@@ -7,15 +7,15 @@ template GradiencePreferencesWindow : Adw.PreferencesWindow {
default-width: 600;
modal: true;

Adw.PreferencesPage {
Adw.PreferencesPage general_page {
Adw.PreferencesGroup flatpak_group {
title: _("GTK 4 Flatpak Applications");

Adw.ActionRow {
title: _("Allow GTK 4 Flatpak Applications Theming");
subtitle: _("Override Flatpak permissions for current user to allow GTK 4 Flatpak applications to access custom themes.");
activatable-widget: allow_gtk4_flatpak_theming_user;
Gtk.Switch allow_gtk4_flatpak_theming_user {
activatable-widget: gtk4_user_theming_switch;
Gtk.Switch gtk4_user_theming_switch {
valign: center;
}
}
@@ -24,8 +24,8 @@ template GradiencePreferencesWindow : Adw.PreferencesWindow {
visible: false;
title: _("Allow GTK 4 Flatpak Applications Theming (System)");
subtitle: _("Override Flatpak permissions for all users to allow GTK 4 Flatpak applications to access custom themes. (Requires root access)");
activatable-widget: allow_gtk4_flatpak_theming_global;
Gtk.Switch allow_gtk4_flatpak_theming_global {
activatable-widget: gtk4_global_theming_switch;
Gtk.Switch gtk4_global_theming_switch {
valign: center;
}
}
@@ -38,8 +38,8 @@ template GradiencePreferencesWindow : Adw.PreferencesWindow {
Adw.ActionRow {
title: _("Allow GTK 3 Flatpak theming");
subtitle: _("Override Flatpak permissions for current user to allow GTK 3 Flatpak applications to access adw-gtk3 theme.");
activatable-widget: allow_gtk3_flatpak_theming_user;
Gtk.Switch allow_gtk3_flatpak_theming_user {
activatable-widget: gtk3_user_theming_switch;
Gtk.Switch gtk3_user_theming_switch {
valign: center;
}
}
@@ -48,13 +48,14 @@ template GradiencePreferencesWindow : Adw.PreferencesWindow {
visible: false;
title: _("GTK 3 Flatpak Applications (System)");
subtitle: _("Override Flatpak permissions for all users to allow GTK 3 Flatpak applications to access adw-gtk3 theme. (Requires root access)");
activatable-widget: allow_gtk3_flatpak_theming_global;
Gtk.Switch allow_gtk3_flatpak_theming_global {
activatable-widget: gtk3_global_theming_switch;
Gtk.Switch gtk3_global_theming_switch {
valign: center;
}
}
}

// NOTE: This group is disabled as there isn't yet any implementation of custom repositories in Gradience
Adw.PreferencesGroup custom_repository_group {
visible: false;
title: _("Custom Preset Repositories");
2 changes: 1 addition & 1 deletion data/ui/presets_manager_window.blp
Original file line number Diff line number Diff line change
@@ -142,7 +142,7 @@ template GradiencePresetWindow : Adw.Window {
};
}

// TODO: Reconsider custom preset repos idea, or remove this page completely in 1.0 release
// NOTE: This group is disabled as there isn't yet any implementation of custom repositories in Gradience
Adw.ViewStackPage {
name: "repos";
title: _("Repositories");
6 changes: 2 additions & 4 deletions data/ui/welcome_window.blp
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ template GradienceWelcomeWindow: Adw.Window {
[overlay]
Gtk.Button btn_back {
styles ["circular"]
margin-start: 10;
margin-start: 12;
icon-name: "go-previous-symbolic";
halign: start;
valign: center;
@@ -48,8 +48,6 @@ template GradienceWelcomeWindow: Adw.Window {
allow-scroll-wheel: true;
allow-mouse-drag: true;
allow-long-swipes: false;
margin-start: 10;
margin-end: 10;

Gtk.Box {
orientation: vertical;
@@ -185,7 +183,7 @@ template GradienceWelcomeWindow: Adw.Window {
[overlay]
Gtk.Button btn_next {
styles ["circular", "suggested-action"]
margin-end: 10;
margin-end: 12;
icon-name: "go-next-symbolic";
halign: end;
valign: center;
7 changes: 3 additions & 4 deletions data/ui/window.blp
Original file line number Diff line number Diff line change
@@ -182,14 +182,13 @@ Popover errors-popover {
Label {
margin-top: 6;
margin-bottom: 6;
margin-start: 12;
margin-end: 12;
margin-start: 6;
margin-end: 6;
halign: start;
styles ["dim-label"]
max-width-chars: 50;
max-width-chars: 30;
wrap: true;
justify: left;
}
}
}

124 changes: 51 additions & 73 deletions gradience/backend/theming/preset_utils.py
Original file line number Diff line number Diff line change
@@ -65,102 +65,80 @@ def new_preset_from_monet(self, name=None, monet_palette=None, props=None, obj_o
if not monet_palette:
raise AttributeError("Property 'monet_palette' missing")

if theme == "dark":
dark_theme = monet_palette["schemes"]["dark"]
variable = {
"accent_color": argb_to_color_code(dark_theme.primary),
"accent_bg_color": argb_to_color_code(dark_theme.primaryContainer),
"accent_fg_color": argb_to_color_code(dark_theme.onPrimaryContainer),
"destructive_color": argb_to_color_code(dark_theme.error),
"destructive_bg_color": argb_to_color_code(dark_theme.errorContainer),
"destructive_fg_color": argb_to_color_code(
dark_theme.onErrorContainer
),
"success_color": argb_to_color_code(dark_theme.tertiary),
"success_bg_color": argb_to_color_code(dark_theme.onTertiary),
"success_fg_color": argb_to_color_code(dark_theme.onTertiaryContainer),
"warning_color": argb_to_color_code(dark_theme.secondary),
"warning_bg_color": argb_to_color_code(dark_theme.onSecondary),
"warning_fg_color": argb_to_color_code(dark_theme.primary, "0.8"),
"error_color": argb_to_color_code(dark_theme.error),
"error_bg_color": argb_to_color_code(dark_theme.errorContainer),
"error_fg_color": argb_to_color_code(dark_theme.onError),
"window_bg_color": argb_to_color_code(dark_theme.surface),
"window_fg_color": argb_to_color_code(dark_theme.onSurface),
"view_bg_color": argb_to_color_code(dark_theme.surface),
"view_fg_color": argb_to_color_code(dark_theme.onSurface),
"headerbar_bg_color": argb_to_color_code(dark_theme.surface),
"headerbar_fg_color": argb_to_color_code(dark_theme.onSurface),
"headerbar_border_color": argb_to_color_code(
dark_theme.primary, "0.8"
),
"headerbar_backdrop_color": "@headerbar_bg_color",
"headerbar_shade_color": argb_to_color_code(dark_theme.shadow),
"card_bg_color": argb_to_color_code(dark_theme.primary, "0.05"),
"card_fg_color": argb_to_color_code(dark_theme.onSecondaryContainer),
"card_shade_color": argb_to_color_code(dark_theme.shadow),
"dialog_bg_color": argb_to_color_code(dark_theme.secondaryContainer),
"dialog_fg_color": argb_to_color_code(dark_theme.onSecondaryContainer),
"popover_bg_color": argb_to_color_code(dark_theme.secondaryContainer),
"popover_fg_color": argb_to_color_code(
dark_theme.onSecondaryContainer
),
"shade_color": argb_to_color_code(dark_theme.shadow),
"scrollbar_outline_color": argb_to_color_code(dark_theme.outline),
}
elif theme == "light":
if theme == "light":
light_theme = monet_palette["schemes"]["light"]
variable = {
"accent_color": argb_to_color_code(light_theme.primary),
"accent_bg_color": argb_to_color_code(light_theme.primary),
"accent_fg_color": argb_to_color_code(light_theme.onPrimary),
"destructive_color": argb_to_color_code(light_theme.error),
"destructive_bg_color": argb_to_color_code(light_theme.errorContainer),
"destructive_fg_color": argb_to_color_code(
light_theme.onErrorContainer
),
"destructive_fg_color": argb_to_color_code(light_theme.onError),
"success_color": argb_to_color_code(light_theme.tertiary),
"success_bg_color": argb_to_color_code(light_theme.tertiaryContainer),
"success_fg_color": argb_to_color_code(
light_theme.onTertiaryContainer
),
"success_fg_color": argb_to_color_code(light_theme.onTertiaryContainer),
"warning_color": argb_to_color_code(light_theme.secondary),
"warning_bg_color": argb_to_color_code(light_theme.secondaryContainer),
"warning_fg_color": argb_to_color_code(
light_theme.onSecondaryContainer
),
"warning_fg_color": argb_to_color_code(light_theme.onSecondaryContainer),
"error_color": argb_to_color_code(light_theme.error),
"error_bg_color": argb_to_color_code(light_theme.errorContainer),
"error_fg_color": argb_to_color_code(light_theme.onError),
"window_bg_color": argb_to_color_code(light_theme.secondaryContainer),
"window_bg_color": argb_to_color_code(light_theme.surface),
"window_fg_color": argb_to_color_code(light_theme.onSurface),
"view_bg_color": argb_to_color_code(light_theme.secondaryContainer),
"view_fg_color": argb_to_color_code(light_theme.onSurface),
"headerbar_bg_color": argb_to_color_code(
light_theme.secondaryContainer
),
"headerbar_fg_color": argb_to_color_code(light_theme.onSurface),
"headerbar_border_color": argb_to_color_code(
light_theme.primary, "0.8"
),
"headerbar_backdrop_color": "@headerbar_bg_color",
"headerbar_shade_color": argb_to_color_code(
light_theme.secondaryContainer
),
"headerbar_bg_color": argb_to_color_code(light_theme.primary, "0.08"),
"headerbar_fg_color": argb_to_color_code(light_theme.onSecondaryContainer),
"headerbar_border_color": argb_to_color_code(light_theme.onSurface, "0.8"),
"headerbar_backdrop_color": "@window_bg_color",
"headerbar_shade_color": argb_to_color_code(light_theme.onSurface, "0.07"),
"card_bg_color": argb_to_color_code(light_theme.primary, "0.05"),
"card_fg_color": argb_to_color_code(light_theme.onSecondaryContainer),
"card_shade_color": argb_to_color_code(light_theme.shadow),
"card_shade_color": argb_to_color_code(light_theme.shadow, "0.07"),
"dialog_bg_color": argb_to_color_code(light_theme.secondaryContainer),
"dialog_fg_color": argb_to_color_code(
light_theme.onSecondaryContainer
),
"dialog_fg_color": argb_to_color_code(light_theme.onSecondaryContainer),
"popover_bg_color": argb_to_color_code(light_theme.secondaryContainer),
"popover_fg_color": argb_to_color_code(
light_theme.onSecondaryContainer
),
"shade_color": argb_to_color_code(light_theme.shadow),
"popover_fg_color": argb_to_color_code(light_theme.onSecondaryContainer),
"shade_color": argb_to_color_code(light_theme.shadow, "0.07"),
"scrollbar_outline_color": argb_to_color_code(light_theme.outline),
}
elif theme == "dark":
dark_theme = monet_palette["schemes"]["dark"]
variable = {
"accent_color": argb_to_color_code(dark_theme.primary),
"accent_bg_color": argb_to_color_code(dark_theme.primary),
"accent_fg_color": argb_to_color_code(dark_theme.onPrimary),
"destructive_color": argb_to_color_code(dark_theme.error),
"destructive_bg_color": argb_to_color_code(dark_theme.errorContainer),
"destructive_fg_color": argb_to_color_code(dark_theme.onError),
"success_color": argb_to_color_code(dark_theme.tertiary),
"success_bg_color": argb_to_color_code(dark_theme.tertiaryContainer),
"success_fg_color": argb_to_color_code(dark_theme.onTertiaryContainer),
"warning_color": argb_to_color_code(dark_theme.secondary),
"warning_bg_color": argb_to_color_code(dark_theme.secondaryContainer),
"warning_fg_color": argb_to_color_code(dark_theme.onSecondaryContainer),
"error_color": argb_to_color_code(dark_theme.error),
"error_bg_color": argb_to_color_code(dark_theme.errorContainer),
"error_fg_color": argb_to_color_code(dark_theme.onError),
"window_bg_color": argb_to_color_code(dark_theme.surface),
"window_fg_color": argb_to_color_code(dark_theme.onSurface),
"view_bg_color": argb_to_color_code(dark_theme.secondaryContainer),
"view_fg_color": argb_to_color_code(dark_theme.onSurface),
"headerbar_bg_color": argb_to_color_code(dark_theme.primary, "0.08"),
"headerbar_fg_color": argb_to_color_code(dark_theme.onSecondaryContainer),
"headerbar_border_color": argb_to_color_code(dark_theme.onSurface, "0.8"),
"headerbar_backdrop_color": "@window_bg_color",
"headerbar_shade_color": argb_to_color_code(dark_theme.onSurface, "0.07"),
"card_bg_color": argb_to_color_code(dark_theme.primary, "0.05"),
"card_fg_color": argb_to_color_code(dark_theme.onSecondaryContainer),
"card_shade_color": argb_to_color_code(dark_theme.shadow, "0.07"),
"dialog_bg_color": argb_to_color_code(dark_theme.secondaryContainer),
"dialog_fg_color": argb_to_color_code(dark_theme.onSecondaryContainer),
"popover_bg_color": argb_to_color_code(dark_theme.secondaryContainer),
"popover_fg_color": argb_to_color_code(dark_theme.onSecondaryContainer),
"shade_color": argb_to_color_code(dark_theme.shadow, "0.36"),
"scrollbar_outline_color": argb_to_color_code(dark_theme.outline, "0.5"),
}

if obj_only == False and not name:
raise AttributeError("You either need to set 'obj_only' property to True, or add value to 'name' property")
16 changes: 8 additions & 8 deletions gradience/frontend/cli/meson.build
Original file line number Diff line number Diff line change
@@ -4,17 +4,17 @@ configure_file(
input: 'cli.in',
output: 'gradience-cli',
configuration: conf,
install: true,
install_dir: get_option('bindir')
)

configure_file(
input: 'cli.in',
output: 'gradience-cli',
configuration: local_conf,
install: true,
install_dir: join_paths(meson.project_build_root(), 'gradience', 'frontend')
)
if get_option('buildtype') == 'debug'
configure_file(
input: 'cli.in',
output: 'local-gradience-cli',
configuration: local_conf,
install_dir: join_paths(meson.project_build_root(), 'gradience', 'frontend')
)
endif

gradience_sources = [
'__init__.py'
Loading