fix: Replace comments text in preset_utils.py

Really, why use slang in code commits?
This commit is contained in:
David Lapshin 2023-04-04 01:28:59 +03:00
parent 9a86b3229e
commit b91611cd46

View file

@ -73,7 +73,7 @@ class PresetUtils:
"accent_fg_color": argb_to_color_code(light_theme.onPrimary), "accent_fg_color": argb_to_color_code(light_theme.onPrimary),
"destructive_color": argb_to_color_code(light_theme.error), "destructive_color": argb_to_color_code(light_theme.error),
"destructive_bg_color": argb_to_color_code(light_theme.errorContainer), "destructive_bg_color": argb_to_color_code(light_theme.errorContainer),
# Do not touch! .onError causes contrast issues! # Avoid using .onError as it causes contrast issues
"destructive_fg_color": argb_to_color_code(light_theme.onErrorContainer), "destructive_fg_color": argb_to_color_code(light_theme.onErrorContainer),
"success_color": argb_to_color_code(light_theme.tertiary), "success_color": argb_to_color_code(light_theme.tertiary),
"success_bg_color": argb_to_color_code(light_theme.tertiaryContainer), "success_bg_color": argb_to_color_code(light_theme.tertiaryContainer),
@ -83,7 +83,7 @@ class PresetUtils:
"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_color": argb_to_color_code(light_theme.error),
"error_bg_color": argb_to_color_code(light_theme.errorContainer), "error_bg_color": argb_to_color_code(light_theme.errorContainer),
# Do not touch # Avoid using .onError as it causes contrast issues
"error_fg_color": argb_to_color_code(light_theme.onErrorContainer), "error_fg_color": argb_to_color_code(light_theme.onErrorContainer),
"window_bg_color": argb_to_color_code(light_theme.surface), "window_bg_color": argb_to_color_code(light_theme.surface),
"window_fg_color": argb_to_color_code(light_theme.onSurface), "window_fg_color": argb_to_color_code(light_theme.onSurface),
@ -112,7 +112,7 @@ class PresetUtils:
"accent_fg_color": argb_to_color_code(dark_theme.onPrimary), "accent_fg_color": argb_to_color_code(dark_theme.onPrimary),
"destructive_color": argb_to_color_code(dark_theme.error), "destructive_color": argb_to_color_code(dark_theme.error),
"destructive_bg_color": argb_to_color_code(dark_theme.errorContainer), "destructive_bg_color": argb_to_color_code(dark_theme.errorContainer),
# No touchy # Avoid using .onError as it causes contrast issues
"destructive_fg_color": argb_to_color_code(dark_theme.onErrorContainer), "destructive_fg_color": argb_to_color_code(dark_theme.onErrorContainer),
"success_color": argb_to_color_code(dark_theme.tertiary), "success_color": argb_to_color_code(dark_theme.tertiary),
"success_bg_color": argb_to_color_code(dark_theme.tertiaryContainer), "success_bg_color": argb_to_color_code(dark_theme.tertiaryContainer),
@ -122,7 +122,7 @@ class PresetUtils:
"warning_fg_color": argb_to_color_code(dark_theme.onSecondaryContainer), "warning_fg_color": argb_to_color_code(dark_theme.onSecondaryContainer),
"error_color": argb_to_color_code(dark_theme.error), "error_color": argb_to_color_code(dark_theme.error),
"error_bg_color": argb_to_color_code(dark_theme.errorContainer), "error_bg_color": argb_to_color_code(dark_theme.errorContainer),
# Do not use .onError plz # Avoid using .onError as it causes contrast issues
"error_fg_color": argb_to_color_code(dark_theme.onErrorContainer), "error_fg_color": argb_to_color_code(dark_theme.onErrorContainer),
"window_bg_color": argb_to_color_code(dark_theme.surface), "window_bg_color": argb_to_color_code(dark_theme.surface),
"window_fg_color": argb_to_color_code(dark_theme.onSurface), "window_fg_color": argb_to_color_code(dark_theme.onSurface),