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

Commit

Permalink
feat: Improve wording in preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
daudix committed Jan 10, 2024
1 parent dd127e8 commit 878bb3f
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 32 deletions.
4 changes: 2 additions & 2 deletions data/ui/custom_css_group.blp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ using Gtk 4.0;
using Adw 1;

template $GradienceCustomCSSGroup : Adw.PreferencesGroup {
title: _("Custom CSS");
description: _("Changing this may break some programs. Libadwaita allows applications to hardcode values like padding and margins, and using custom CSS may cause unintended breakage.");
title: _("Custom Styles");
description: _("Changing this may break some programs. Libadwaita allows applications to hardcode values like padding and margins, and using custom styles may cause unintended breakage.");

[header-suffix]
DropDown app_type_dropdown {
Expand Down
2 changes: 1 addition & 1 deletion data/ui/explore_preset_row.blp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ template $GradienceExplorePresetRow : Adw.ActionRow {
Button download_button {
valign: center;
icon-name: "folder-download-symbolic";
tooltip-text: _("Download Only");
tooltip-text: _("Download");
clicked => $on_download_button_clicked();

styles [
Expand Down
2 changes: 1 addition & 1 deletion data/ui/monet_theming_group.blp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using Adw 1;

template $GradienceMonetThemingGroup : Adw.PreferencesGroup {
title: _("Monet Engine");
description: _("Monet Engine generates a Material You color palette from an image.");
description: _("Generates a Material Design 3 palette by extracting colors of an image.");

Adw.ExpanderRow monet-theming-expander {
title: _("Monet Engine Options");
Expand Down
25 changes: 13 additions & 12 deletions data/ui/preferences_window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ template $GradiencePreferencesWindow : Adw.PreferencesWindow {
title: _("Flatpak Applications");

Adw.ActionRow {
title: _("Allow GTK 4 Theming");
subtitle: _("Override Flatpak permissions for current user to allow GTK 4 Flatpak apps to access custom themes.");
title: _("Theme sandboxed GTK 4 apps");
subtitle: _("Allow GTK 4 Flatpak apps of current user to access custom themes");
activatable-widget: gtk4_user_theming_switch;
Gtk.Switch gtk4_user_theming_switch {
valign: center;
Expand All @@ -25,17 +25,17 @@ template $GradiencePreferencesWindow : Adw.PreferencesWindow {

Adw.ActionRow {
visible: false;
title: _("Allow GTK 4 Theming (System)");
subtitle: _("Override Flatpak permissions for all users to allow GTK 4 Flatpak apps to access custom themes. (Requires root access)");
title: _("Theme sandboxed GTK 4 apps (System)");
subtitle: _("Allow GTK 4 Flatpak apps of all users to access custom themes (Authentication required)");
activatable-widget: gtk4_global_theming_switch;
Gtk.Switch gtk4_global_theming_switch {
valign: center;
}
}

Adw.ActionRow {
title: _("Allow GTK 3 Theming");
subtitle: _("Override Flatpak permissions for current user to allow GTK 3 Flatpak apps to access adw-gtk3 theme.");
title: _("Theme sandboxed GTK 3 apps");
subtitle: _("Allow GTK 3 Flatpak apps of current user to access adw-gtk3 theme");
activatable-widget: gtk3_user_theming_switch;
Gtk.Switch gtk3_user_theming_switch {
valign: center;
Expand All @@ -44,8 +44,8 @@ template $GradiencePreferencesWindow : Adw.PreferencesWindow {

Adw.ActionRow {
visible: false;
title: _("Allow GTK 3 Theming (System)");
subtitle: _("Override Flatpak permissions for all users to allow GTK 3 Flatpak apps to access adw-gtk3 theme. (Requires root access)");
title: _("Theme sandboxed GTK 3 apps (System)");
subtitle: _("Allow GTK 3 Flatpak apps of all users to access adw-gtk3 theme (Authentication required)");
activatable-widget: gtk3_global_theming_switch;
Gtk.Switch gtk3_global_theming_switch {
valign: center;
Expand All @@ -57,8 +57,8 @@ template $GradiencePreferencesWindow : Adw.PreferencesWindow {

title: _("Preset Fetching");
Adw.ActionRow jsdelivr_row {
title: _("Use an alternative server for downloading presets");
subtitle: _("JSDelivr will be used instead of direct preset fetching from GitHub");
title: _("Use an alternative server for fetching presets");
subtitle: _("Use JSDelivr instead of directly fetching presets from GitHub");
activatable-widget: jsdelivr_switch;
Gtk.Switch jsdelivr_switch {
valign: center;
Expand Down Expand Up @@ -102,7 +102,7 @@ template $GradiencePreferencesWindow : Adw.PreferencesWindow {

Adw.ActionRow {
title: _("Shell Engine");
subtitle: _("Shell Engine generates a custom GNOME Shell theme based on a currently chosen preset.");
subtitle: _("Generates GNOME Shell theme based on current preset");
activatable-widget: gnome_shell_engine_switch;
Switch gnome_shell_engine_switch {
valign: center;
Expand All @@ -111,7 +111,7 @@ template $GradiencePreferencesWindow : Adw.PreferencesWindow {

Adw.ActionRow {
title: _("Monet Engine");
subtitle: _("Monet Engine generates a Material Design 3 palette by extracting the image's colors.");
subtitle: _("Generates a Material Design 3 palette by extracting colors of an image");
activatable-widget: monet_engine_switch;
Switch monet_engine_switch {
valign: center;
Expand All @@ -120,3 +120,4 @@ template $GradiencePreferencesWindow : Adw.PreferencesWindow {
}
}
}

1 change: 1 addition & 0 deletions data/ui/preset_row.blp
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,4 @@ template $GradiencePresetRow : Adw.ExpanderRow {
// }
//}
}

1 change: 1 addition & 0 deletions data/ui/presets_manager_window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,4 @@ Gtk.FileFilter json_filter {
name: _("JSON file (*.json)");
mime-types ["application/json"]
}

8 changes: 4 additions & 4 deletions data/ui/reset_preset_group.blp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ using Gtk 4.0;
using Adw 1;

template $GradienceResetPresetGroup : Adw.PreferencesGroup {
title: _("Reset and Restore Presets");
description: _("Reset a currently applied preset or restore the previous one.");
title: _("Reset and Restore Theming");
description: _("Reset theming to default or restore previously applied preset.");

Adw.ActionRow {
title: _("Libadwaita and GTK 4 Applications");
title: _("GTK 4/Libadwaita Apps");

Button restore_libadw_button {
valign: center;
Expand All @@ -26,7 +26,7 @@ template $GradienceResetPresetGroup : Adw.PreferencesGroup {
}

Adw.ActionRow {
title: _("GTK 3 Applications");
title: _("GTK 3 Apps");

Button restore_gtk3_button {
valign: center;
Expand Down
3 changes: 1 addition & 2 deletions data/ui/shell_prefs_window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ template $GradienceShellPrefsWindow : Adw.PreferencesWindow {

Adw.PreferencesPage {
Adw.PreferencesGroup custom-colors-group {
title: _("Custom Shell Colors");
description: _("Customize Shell theme colors.");
title: _("Shell theme colors");
}
}
}
31 changes: 26 additions & 5 deletions data/ui/shell_theming_group.blp
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
using Gtk 4.0;
using Adw 1;

template $GradienceShellThemingGroup : Adw.PreferencesGroup {
template $GradienceShellThemingGroup: Adw.PreferencesGroup {
title: _("Shell Engine");
description: _("Shell Engine generates a custom GNOME Shell theme based on the currently selected preset.\nWARNING: Extensions that modify the Shell stylesheet may cause issues with themes.");
description: _("Generates GNOME Shell theme based on current preset.\nWARNING: Extensions that modify the Shell stylesheet may cause issues with themes.");

// TODO: Fix the warning being under shell-theming-expander
Label {
label: "Warning: Extensions that modify the Shell stylesheet may cause issues with themes";
halign: start;

styles [
"dim-label",
"warning"
]
}

Adw.ExpanderRow shell-theming-expander {
title: _("Shell Engine Options");
Expand All @@ -16,7 +27,10 @@ template $GradienceShellThemingGroup : Adw.PreferencesGroup {
label: _("Apply");
tooltip-text: _("Apply Shell theme");
clicked => $on_apply_button_clicked();
styles ["suggested-action"]

styles [
"suggested-action"
]
}

Adw.ActionRow custom-colors-row {
Expand Down Expand Up @@ -47,7 +61,10 @@ Adw.ActionRow other-options-row {
//tooltip-text: _("Restore Previous Theme");
tooltip-text: _("Currently unavailable");
clicked => $on_restore_button_clicked();
styles ["flat"]

styles [
"flat"
]
}

[suffix]
Expand All @@ -56,6 +73,10 @@ Adw.ActionRow other-options-row {
label: _("Reset Theme");
tooltip-text: _("Reset applied theme");
clicked => $on_reset_theme_clicked();
styles ["destructive-action"]

styles [
"destructive-action"
]
}
}

10 changes: 5 additions & 5 deletions data/ui/welcome_window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,18 @@ template $GradienceWelcomeWindow: Adw.Window {
Adw.StatusPage page_release {
icon-name: "software-update-available-symbolic";
title: _("What's new in 0.8.0");
description: _("In this release, we added GNOME Shell theming support and reworked how Gradience works internally.");
description: _("In this release, we added GNOME Shell theming support and reworked how Gradience works internally");
}

Adw.StatusPage page_agreement {
vexpand: true;
hexpand: true;
icon-name: "dialog-warning-symbolic";
title: _("Warning");
description: _("Changing the color scheme can negatively affect contrast and readability. Proceed with caution. Please do not report theming-related issues to app developers.");
description: _("Changing the color scheme can negatively affect contrast and readability. Proceed with caution. Please do not report theming-related issues to app developers");

Gtk.Button btn_agree {
styles ["suggested-action", "pill"]
styles ["destructive-action", "pill"]
label: _("Agree and Continue");
use-underline: true;
halign: center;
Expand All @@ -90,8 +90,8 @@ template $GradienceWelcomeWindow: Adw.Window {
vexpand: true;
hexpand: true;
icon-name: "larger-brush-symbolic";
title: _("Customize Adwaita Theme");
description: _("Change colors of windows, buttons, lists and more, with advanced features like adding custom CSS.");
title: _("Customize Adwaita");
description: _("Change colors of windows, buttons, lists and more, with advanced features like adding custom styles");

Gtk.Button btn_close {
styles ["suggested-action", "pill"]
Expand Down

0 comments on commit 878bb3f

Please sign in to comment.