mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-04 00:47:52 +00:00
Format code with black and autopep8 (#488)
This commit is contained in:
commit
eff9da54a9
4 changed files with 56 additions and 61 deletions
|
@ -588,7 +588,7 @@ class GradienceApplication(Adw.Application):
|
|||
dialog = GradienceAppTypeDialog(
|
||||
_("Apply this color scheme?"),
|
||||
_(
|
||||
"Warning: any custom CSS files for those app types will be "\
|
||||
"Warning: any custom CSS files for those app types will be "
|
||||
"irreversibly overwritten!"
|
||||
),
|
||||
"apply",
|
||||
|
@ -629,7 +629,7 @@ class GradienceApplication(Adw.Application):
|
|||
transient_for=self.props.active_window,
|
||||
heading=_("Save preset as..."),
|
||||
body=_(
|
||||
"Saving preset to <tt>{0}</tt>. If that preset already "\
|
||||
"Saving preset to <tt>{0}</tt>. If that preset already "
|
||||
"exists, it will be overwritten!"
|
||||
).format(
|
||||
os.path.join(
|
||||
|
@ -657,7 +657,7 @@ class GradienceApplication(Adw.Application):
|
|||
if len(preset_entry.get_text()) == 0:
|
||||
dialog.set_body(
|
||||
_(
|
||||
"Saving preset to <tt>{0}</tt>. If that preset "\
|
||||
"Saving preset to <tt>{0}</tt>. If that preset "
|
||||
"already exists, it will be overwritten!"
|
||||
).format(
|
||||
os.path.join(
|
||||
|
@ -674,7 +674,7 @@ class GradienceApplication(Adw.Application):
|
|||
else:
|
||||
dialog.set_body(
|
||||
_(
|
||||
"Saving preset to <tt>{0}</tt>. If that preset "\
|
||||
"Saving preset to <tt>{0}</tt>. If that preset "
|
||||
"already exists, it will be overwritten!"
|
||||
).format(
|
||||
os.path.join(
|
||||
|
@ -702,7 +702,7 @@ class GradienceApplication(Adw.Application):
|
|||
transient_for=self.props.active_window,
|
||||
heading=_("You have unsaved changes!"),
|
||||
body=_(
|
||||
"Saving preset to <tt>{0}</tt>. If that preset already "\
|
||||
"Saving preset to <tt>{0}</tt>. If that preset already "
|
||||
"exists, it will be overwritten!"
|
||||
).format(
|
||||
os.path.join(
|
||||
|
@ -733,7 +733,7 @@ class GradienceApplication(Adw.Application):
|
|||
if len(preset_entry.get_text()) == 0:
|
||||
dialog.set_body(
|
||||
_(
|
||||
"Saving preset to <tt>{0}</tt>. If that preset "\
|
||||
"Saving preset to <tt>{0}</tt>. If that preset "
|
||||
"already exists, it will be overwritten!"
|
||||
).format(
|
||||
os.path.join(
|
||||
|
@ -750,7 +750,7 @@ class GradienceApplication(Adw.Application):
|
|||
else:
|
||||
dialog.set_body(
|
||||
_(
|
||||
"Saving preset to <tt>{0}</tt>. If that preset "\
|
||||
"Saving preset to <tt>{0}</tt>. If that preset "
|
||||
"already exists, it will be overwritten!"
|
||||
).format(
|
||||
os.path.join(
|
||||
|
|
|
@ -46,10 +46,7 @@ class GradienceOption(Adw.ActionRow):
|
|||
elif adw_gtk3_support == "partial":
|
||||
self.warning_button.add_css_class("warning")
|
||||
self.warning_label.set_label(
|
||||
_(
|
||||
"This option is only partially supported by the adw-gtk3 "\
|
||||
"theme."
|
||||
)
|
||||
_("This option is only partially supported by the adw-gtk3 " "theme.")
|
||||
)
|
||||
elif adw_gtk3_support == "no":
|
||||
self.warning_button.add_css_class("error")
|
||||
|
|
|
@ -95,7 +95,7 @@ class GradiencePluginsList:
|
|||
group.set_title(_("Plugins"))
|
||||
group.set_description(
|
||||
_(
|
||||
"Plugins add additional features to Gradience, plugins are "\
|
||||
"Plugins add additional features to Gradience, plugins are "
|
||||
"made by Gradience community and can make issues."
|
||||
)
|
||||
)
|
||||
|
|
|
@ -22,8 +22,8 @@ settings_schema = {
|
|||
"name": "accent_colors",
|
||||
"title": _("Accent Colors"),
|
||||
"description": _(
|
||||
"These colors are used across many different widgets, such "\
|
||||
"as buttons, labels, and entries, to indicate that a widget "\
|
||||
"These colors are used across many different widgets, such "
|
||||
"as buttons, labels, and entries, to indicate that a widget "
|
||||
"is important, interactive, or currently active."
|
||||
),
|
||||
"variables": [
|
||||
|
@ -31,9 +31,9 @@ settings_schema = {
|
|||
"name": "accent_color",
|
||||
"title": _("Standalone Color"),
|
||||
"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 - "\
|
||||
"The standalone colors are similar to the background "
|
||||
"ones, but provide better contrast when used as "
|
||||
"foreground color on top of a neutral background - "
|
||||
"for example, colorful text in a window."
|
||||
),
|
||||
"adw_gtk3_support": "yes",
|
||||
|
@ -54,7 +54,7 @@ settings_schema = {
|
|||
"name": "destructive_colors",
|
||||
"title": _("Destructive Colors"),
|
||||
"description": _(
|
||||
"These colors are used for buttons to indicate a dangerous "\
|
||||
"These colors are used for buttons to indicate a dangerous "
|
||||
"action, such as deleting a file."
|
||||
),
|
||||
"variables": [
|
||||
|
@ -62,9 +62,9 @@ settings_schema = {
|
|||
"name": "destructive_color",
|
||||
"title": _("Standalone Color"),
|
||||
"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 - "\
|
||||
"The standalone colors are similar to the background "
|
||||
"ones, but provide better contrast when used as "
|
||||
"foreground color on top of a neutral background - "
|
||||
"for example, colorful text in a window."
|
||||
),
|
||||
"adw_gtk3_support": "yes",
|
||||
|
@ -85,8 +85,8 @@ settings_schema = {
|
|||
"name": "success_colors",
|
||||
"title": _("Success Colors"),
|
||||
"description": _(
|
||||
"These colors are used across many different widgets, such "\
|
||||
"as buttons, labels, entries, and level bars, to indicate a "\
|
||||
"These colors are used across many different widgets, such "
|
||||
"as buttons, labels, entries, and level bars, to indicate a "
|
||||
"success or a high level."
|
||||
),
|
||||
"variables": [
|
||||
|
@ -94,9 +94,9 @@ settings_schema = {
|
|||
"name": "success_color",
|
||||
"title": _("Standalone Color"),
|
||||
"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 - "\
|
||||
"The standalone colors are similar to the background "
|
||||
"ones, but provide better contrast when used as "
|
||||
"foreground color on top of a neutral background - "
|
||||
"for example, colorful text in a window."
|
||||
),
|
||||
"adw_gtk3_support": "yes",
|
||||
|
@ -117,8 +117,8 @@ settings_schema = {
|
|||
"name": "warning_colors",
|
||||
"title": _("Warning Colors"),
|
||||
"description": _(
|
||||
"These colors are used across many different widgets, such "\
|
||||
"as buttons, labels, entries, and level bars, to indicate a "\
|
||||
"These colors are used across many different widgets, such "
|
||||
"as buttons, labels, entries, and level bars, to indicate a "
|
||||
"warning or a low level."
|
||||
),
|
||||
"variables": [
|
||||
|
@ -126,9 +126,9 @@ settings_schema = {
|
|||
"name": "warning_color",
|
||||
"title": _("Standalone Color"),
|
||||
"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 - "\
|
||||
"The standalone colors are similar to the background "
|
||||
"ones, but provide better contrast when used as "
|
||||
"foreground color on top of a neutral background - "
|
||||
"for example, colorful text in a window."
|
||||
),
|
||||
"adw_gtk3_support": "yes",
|
||||
|
@ -149,7 +149,7 @@ settings_schema = {
|
|||
"name": "error_colors",
|
||||
"title": _("Error Colors"),
|
||||
"description": _(
|
||||
"These colors are used across many different widgets, such "\
|
||||
"These colors are used across many different widgets, such "
|
||||
"as buttons, labels, and entries, to indicate a failure."
|
||||
),
|
||||
"variables": [
|
||||
|
@ -157,9 +157,9 @@ settings_schema = {
|
|||
"name": "error_color",
|
||||
"title": _("Standalone Color"),
|
||||
"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 - "\
|
||||
"The standalone colors are similar to the background "
|
||||
"ones, but provide better contrast when used as "
|
||||
"foreground color on top of a neutral background - "
|
||||
"for example, colorful text in a window."
|
||||
),
|
||||
"adw_gtk3_support": "yes",
|
||||
|
@ -197,7 +197,7 @@ settings_schema = {
|
|||
"name": "view_colors",
|
||||
"title": _("View Colors"),
|
||||
"description": _(
|
||||
"These colors are used in a variety of widgets, such as text "\
|
||||
"These colors are used in a variety of widgets, such as text "
|
||||
"views and entries."
|
||||
),
|
||||
"variables": [
|
||||
|
@ -217,8 +217,8 @@ settings_schema = {
|
|||
"name": "headerbar_colors",
|
||||
"title": _("Header Bar Colors"),
|
||||
"description": _(
|
||||
"These colors are used for header bars, as well as widgets "\
|
||||
"that are meant to be visually attached to it, such as "\
|
||||
"These colors are used for header bars, as well as widgets "
|
||||
"that are meant to be visually attached to it, such as "
|
||||
"search bars or tab bars."
|
||||
),
|
||||
"variables": [
|
||||
|
@ -236,13 +236,13 @@ settings_schema = {
|
|||
"name": "headerbar_border_color",
|
||||
"title": _("Border Color"),
|
||||
"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 "\
|
||||
"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 "
|
||||
"header bar layout."
|
||||
),
|
||||
"adw_gtk3_support": "no",
|
||||
|
@ -251,11 +251,11 @@ settings_schema = {
|
|||
"name": "headerbar_backdrop_color",
|
||||
"title": _("Backdrop Color"),
|
||||
"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 "\
|
||||
"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 "
|
||||
"matching your header bar background color."
|
||||
),
|
||||
"adw_gtk3_support": "yes",
|
||||
|
@ -264,8 +264,8 @@ settings_schema = {
|
|||
"name": "headerbar_shade_color",
|
||||
"title": _("Shade Color"),
|
||||
"explanation": _(
|
||||
"The shade color is used to provide a dark border "\
|
||||
"for header bars and similar widgets that separates "\
|
||||
"The shade color is used to provide a dark border "
|
||||
"for header bars and similar widgets that separates "
|
||||
"them from the main window."
|
||||
),
|
||||
"adw_gtk3_support": "no",
|
||||
|
@ -275,9 +275,7 @@ settings_schema = {
|
|||
{
|
||||
"name": "card_colors",
|
||||
"title": _("Card Colors"),
|
||||
"description": _(
|
||||
"These colors are used for cards and boxed lists."
|
||||
),
|
||||
"description": _("These colors are used for cards and boxed lists."),
|
||||
"variables": [
|
||||
{
|
||||
"name": "card_bg_color",
|
||||
|
@ -293,8 +291,8 @@ settings_schema = {
|
|||
"name": "card_shade_color",
|
||||
"title": _("Shade Color"),
|
||||
"explanation": _(
|
||||
"The shade color is used for shadows that are used "\
|
||||
"by cards to separate themselves from the window "\
|
||||
"The shade color is used for shadows that are used "
|
||||
"by cards to separate themselves from the window "
|
||||
"background, as well as for row dividers in the cards."
|
||||
),
|
||||
"adw_gtk3_support": "no",
|
||||
|
@ -344,8 +342,8 @@ settings_schema = {
|
|||
"name": "shade_color",
|
||||
"title": _("Shade Color"),
|
||||
"explanation": _(
|
||||
"The shade color is used by inline tab bars, as well "\
|
||||
"as the transitions in leaflets and flaps, and info "\
|
||||
"The shade color is used by inline tab bars, as well "
|
||||
"as the transitions in leaflets and flaps, and info "
|
||||
"bar borders."
|
||||
),
|
||||
"adw_gtk3_support": "no",
|
||||
|
@ -354,8 +352,8 @@ settings_schema = {
|
|||
"name": "scrollbar_outline_color",
|
||||
"title": _("Scrollbar Outline Color"),
|
||||
"explanation": _(
|
||||
"The scrollbar outline color is used by scrollbars "\
|
||||
"to ensure that overlay scrollbars are visible "\
|
||||
"The scrollbar outline color is used by scrollbars "
|
||||
"to ensure that overlay scrollbars are visible "
|
||||
"regardless of the content color."
|
||||
),
|
||||
"adw_gtk3_support": "no",
|
||||
|
|
Loading…
Reference in a new issue