Gradience/gradience/settings_schema.py

377 lines
15 KiB
Python
Raw Normal View History

2022-08-11 08:16:44 +00:00
# settings_schema.py
#
# Change the look of Adwaita, with ease
# Copyright (C) 2022 Gradience Team
2022-08-11 08:16:44 +00:00
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
2022-08-11 16:39:52 +00:00
#
2022-08-11 08:16:44 +00:00
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
2022-08-11 16:39:52 +00:00
#
2022-08-11 08:16:44 +00:00
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
settings_schema = {
"groups": [
{
"name": "accent_colors",
"title": _("Accent Colors"),
2022-08-11 16:39:52 +00:00
"description": _(
"These colors are used across many different widgets, such "
"as buttons, labels, and entries, to indicate that a widget "
2022-09-23 17:31:06 +00:00
"is important, interactive, or currently active."
2022-08-11 16:39:52 +00:00
),
"variables": [
{
"name": "accent_color",
"title": _("Standalone Color"),
2022-08-11 16:39:52 +00:00
"explanation": _(
"The standalone colors are similar to the background "
"ones, but provide better contrast when used as "
"foreground color on top of a neutral background - "
2022-09-23 17:31:06 +00:00
"for example, colorful text in a window."
2022-08-11 16:39:52 +00:00
),
"adw_gtk3_support": "yes",
},
{
"name": "accent_bg_color",
"title": _("Background Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
{
"name": "accent_fg_color",
"title": _("Foreground Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
],
},
{
"name": "destructive_colors",
"title": _("Destructive Colors"),
2022-08-11 16:39:52 +00:00
"description": _(
"These colors are used for buttons to indicate a dangerous "
2022-09-23 17:31:06 +00:00
"action, such as deleting a file."
2022-08-11 16:39:52 +00:00
),
"variables": [
{
"name": "destructive_color",
"title": _("Standalone Color"),
2022-08-11 16:39:52 +00:00
"explanation": _(
"The standalone colors are similar to the background "
"ones, but provide better contrast when used as "
"foreground color on top of a neutral background - "
2022-09-23 17:31:06 +00:00
"for example, colorful text in a window."
2022-08-11 16:39:52 +00:00
),
"adw_gtk3_support": "yes",
},
{
"name": "destructive_bg_color",
"title": _("Background Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
{
"name": "destructive_fg_color",
"title": _("Foreground Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "partial",
},
],
},
{
"name": "success_colors",
"title": _("Success Colors"),
2022-08-11 16:39:52 +00:00
"description": _(
"These colors are used across many different widgets, such "
"as buttons, labels, entries, and level bars, to indicate a "
2022-09-23 17:31:06 +00:00
"success or a high level."
2022-08-11 16:39:52 +00:00
),
"variables": [
{
"name": "success_color",
"title": _("Standalone Color"),
2022-08-11 16:39:52 +00:00
"explanation": _(
"The standalone colors are similar to the background "
"ones, but provide better contrast when used as "
"foreground color on top of a neutral background - "
2022-09-23 17:31:06 +00:00
"for example, colorful text in a window."
2022-08-11 16:39:52 +00:00
),
"adw_gtk3_support": "yes",
},
{
"name": "success_bg_color",
"title": _("Background Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
{
"name": "success_fg_color",
"title": _("Foreground Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "partial",
},
],
},
{
"name": "warning_colors",
"title": _("Warning Colors"),
2022-08-11 16:39:52 +00:00
"description": _(
"These colors are used across many different widgets, such "
"as buttons, labels, entries, and level bars, to indicate a "
2022-09-23 17:31:06 +00:00
"warning or a low level."
2022-08-11 16:39:52 +00:00
),
"variables": [
{
"name": "warning_color",
"title": _("Standalone Color"),
2022-08-11 16:39:52 +00:00
"explanation": _(
"The standalone colors are similar to the background "
"ones, but provide better contrast when used as "
"foreground color on top of a neutral background - "
2022-09-23 17:31:06 +00:00
"for example, colorful text in a window."
2022-08-11 16:39:52 +00:00
),
"adw_gtk3_support": "yes",
},
{
"name": "warning_bg_color",
"title": _("Background Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
{
"name": "warning_fg_color",
"title": _("Foreground Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "partial",
},
],
},
{
"name": "error_colors",
"title": _("Error Colors"),
2022-08-11 16:39:52 +00:00
"description": _(
"These colors are used across many different widgets, such "
2022-09-23 17:31:06 +00:00
"as buttons, labels, and entries, to indicate a failure."
2022-08-11 16:39:52 +00:00
),
"variables": [
{
"name": "error_color",
"title": _("Standalone Color"),
2022-08-11 16:39:52 +00:00
"explanation": _(
"The standalone colors are similar to the background "
"ones, but provide better contrast when used as "
"foreground color on top of a neutral background - "
2022-09-23 17:31:06 +00:00
"for example, colorful text in a window."
2022-08-11 16:39:52 +00:00
),
"adw_gtk3_support": "yes",
},
{
"name": "error_bg_color",
"title": _("Background Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
{
"name": "error_fg_color",
"title": _("Foreground Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "partial",
},
],
},
{
"name": "window_colors",
"title": _("Window Colors"),
"description": _("These colors are used primarily for windows."),
"variables": [
{
"name": "window_bg_color",
"title": _("Background Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
{
"name": "window_fg_color",
"title": _("Foreground Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
],
},
{
"name": "view_colors",
"title": _("View Colors"),
2022-08-11 16:39:52 +00:00
"description": _(
"These colors are used in a variety of widgets, such as text "
2022-09-23 17:31:06 +00:00
"views and entries."
2022-08-11 16:39:52 +00:00
),
"variables": [
{
"name": "view_bg_color",
"title": _("Background Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
{
"name": "view_fg_color",
"title": _("Foreground Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
],
},
{
"name": "headerbar_colors",
"title": _("Header Bar Colors"),
2022-08-11 16:39:52 +00:00
"description": _(
"These colors are used for header bars, as well as widgets "
"that are meant to be visually attached to it, such as "
2022-09-23 17:31:06 +00:00
"search bars or tab bars."
2022-08-11 16:39:52 +00:00
),
"variables": [
{
"name": "headerbar_bg_color",
"title": _("Background Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
{
"name": "headerbar_fg_color",
"title": _("Foreground Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
{
"name": "headerbar_border_color",
"title": _("Border Color"),
2022-08-11 16:39:52 +00:00
"explanation": _(
"The border color has the same default value as a "
"foreground color, but doesn't change along with it. "
"This can be useful if a light window has a dark "
"header bar with light text; in this case it may be "
"desirable to keep the border dark. This variable is "
"only used for vertical borders - for example, "
"separators between the two header bars in a split "
2022-09-23 17:31:06 +00:00
"header bar layout."
2022-08-11 16:39:52 +00:00
),
"adw_gtk3_support": "no",
2022-08-10 19:16:44 +00:00
},
{
"name": "headerbar_backdrop_color",
"title": _("Backdrop Color"),
2022-08-11 16:39:52 +00:00
"explanation": _(
"The backdrop color is used instead of the "
"background color when the window is not focused. By "
"default it's an alias of the window's background "
"color and changes together with it. When changing "
"this variable, make sure to set it to a value "
2022-09-23 17:31:06 +00:00
"matching your header bar background color."
2022-08-11 16:39:52 +00:00
),
"adw_gtk3_support": "yes",
},
{
"name": "headerbar_shade_color",
"title": _("Shade Color"),
2022-08-11 16:39:52 +00:00
"explanation": _(
"The shade color is used to provide a dark border "
"for header bars and similar widgets that separates "
2022-09-23 17:31:06 +00:00
"them from the main window."
2022-08-11 16:39:52 +00:00
),
"adw_gtk3_support": "no",
},
],
},
{
"name": "card_colors",
"title": _("Card Colors"),
"description": _("These colors are used for cards and boxed lists."),
"variables": [
{
"name": "card_bg_color",
"title": _("Background Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
{
"name": "card_fg_color",
"title": _("Foreground Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
{
"name": "card_shade_color",
"title": _("Shade Color"),
2022-08-11 16:39:52 +00:00
"explanation": _(
"The shade color is used for shadows that are used "
"by cards to separate themselves from the window "
2022-09-23 17:31:06 +00:00
"background, as well as for row dividers in the cards."
2022-08-11 16:39:52 +00:00
),
"adw_gtk3_support": "no",
},
],
},
{
"name": "dialog_colors",
"title": _("Dialog Colors"),
"description": _("These colors are used for message dialogs."),
"variables": [
{
"name": "dialog_bg_color",
"title": _("Background Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "no",
2022-08-10 19:16:44 +00:00
},
{
"name": "dialog_fg_color",
"title": _("Foreground Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "no",
},
],
},
{
"name": "popover_colors",
"title": _("Popover Colors"),
"description": _("These colors are used for popovers."),
"variables": [
{
"name": "popover_bg_color",
"title": _("Background Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
{
"name": "popover_fg_color",
"title": _("Foreground Color"),
2022-08-11 16:39:52 +00:00
"adw_gtk3_support": "yes",
},
],
},
{
"name": "misc_colors",
"title": _("Miscalleneous Colors"),
"description": _("Colors that don't fit in any particular group."),
"variables": [
{
"name": "shade_color",
"title": _("Shade Color"),
2022-08-11 16:39:52 +00:00
"explanation": _(
"The shade color is used by inline tab bars, as well "
"as the transitions in leaflets and flaps, and info "
2022-09-23 17:31:06 +00:00
"bar borders."
2022-08-11 16:39:52 +00:00
),
"adw_gtk3_support": "no",
2022-08-10 19:16:44 +00:00
},
{
"name": "scrollbar_outline_color",
"title": _("Scrollbar Outline Color"),
2022-08-11 16:39:52 +00:00
"explanation": _(
"The scrollbar outline color is used by scrollbars "
"to ensure that overlay scrollbars are visible "
2022-09-23 17:31:06 +00:00
"regardless of the content color."
2022-08-11 16:39:52 +00:00
),
"adw_gtk3_support": "no",
},
],
},
],
"palette": [
2022-08-11 16:39:52 +00:00
{"prefix": "blue_", "title": _("Blue"), "n_shades": 5},
{"prefix": "green_", "title": _("Green"), "n_shades": 5},
{"prefix": "yellow_", "title": _("Yellow"), "n_shades": 5},
{"prefix": "orange_", "title": _("Orange"), "n_shades": 5},
{"prefix": "red_", "title": _("Red"), "n_shades": 5},
{"prefix": "purple_", "title": _("Purple"), "n_shades": 5},
{"prefix": "brown_", "title": _("Brown"), "n_shades": 5},
{"prefix": "light_", "title": _("Light"), "n_shades": 5},
{"prefix": "dark_", "title": _("Dark"), "n_shades": 5},
],
2022-08-11 16:39:52 +00:00
"custom_css_app_types": ["gtk4", "gtk3"],
}