From a5422fccbf6246773c5911d6abaf80a5fc9844da Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Sun, 3 Sep 2023 19:26:13 -0700 Subject: [PATCH] themes: rename macos theme keys for consistency Signed-off-by: David Aguilar --- cola/themes.py | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/cola/themes.py b/cola/themes.py index a99c9f11..b6e353df 100644 --- a/cola/themes.py +++ b/cola/themes.py @@ -753,29 +753,34 @@ def get_macos_themes(): if AppKit is None: return themes - def _add_theme(name, description, is_dark, attr): + def add_macos_theme(name, description, is_dark, attr): """Add an AppKit theme if it exists""" if hasattr(AppKit, attr): themes[name] = Theme( name, description, is_dark, macos_appearance=getattr(AppKit, attr) ) - _add_theme('macos-aqua', N_('MacOS Aqua'), False, 'NSAppearanceNameAqua') - _add_theme( - 'macos-dark-aqua', - N_('MacOS Dark Aqua'), + add_macos_theme( + 'macos-aqua-light', + N_('MacOS Aqua light'), + False, + 'NSAppearanceNameAqua' + ) + add_macos_theme( + 'macos-aqua-dark', + N_('MacOS Aqua dark'), True, 'NSAppearanceNameDarkAqua', ) - _add_theme( + add_macos_theme( 'macos-vibrant-light', - N_('MacOS Vibrant Light'), + N_('MacOS Vibrant light'), False, 'NSAppearanceNameVibrantLight', ) - _add_theme( + add_macos_theme( 'macos-vibrant-dark', - N_('MacOS Vibrant Dark'), + N_('MacOS Vibrant dark'), True, 'NSAppearanceNameVibrantDark', ) -- 2.11.4.GIT