This is what it looks like:
![Screenshot_20230213_212244](/uploads/65f4482244756b68eb082d07941bb288/Screenshot_20230213_212244.png)
From: Mohamad Al-Jaf mohamadaljaf@gmail.com
--- loader/wine.inf.in | 1 + 1 file changed, 1 insertion(+)
diff --git a/loader/wine.inf.in b/loader/wine.inf.in index 1f5138051c9..b2af93b2276 100644 --- a/loader/wine.inf.in +++ b/loader/wine.inf.in @@ -2363,6 +2363,7 @@ StartType=3 ErrorControl=1
[ThemeManager] +HKCU,"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize","AppsUseLightTheme",0x10001,0x00000001 HKCU,"Software\Microsoft\Windows\CurrentVersion\ThemeManager","ThemeActive",2,"1" HKCU,"Software\Microsoft\Windows\CurrentVersion\ThemeManager","DllName",2,"%10%\resources\themes\light\light.msstyles" HKCU,"Software\Microsoft\Windows\CurrentVersion\ThemeManager","ColorName",2,"Blue"
From: Mohamad Al-Jaf mohamadaljaf@gmail.com
--- dlls/windows.ui/tests/uisettings.c | 4 ++-- programs/winecfg/resource.h | 1 + programs/winecfg/theme.c | 31 ++++++++++++++++++++++++++++++ programs/winecfg/winecfg.rc | 5 +++-- 4 files changed, 37 insertions(+), 4 deletions(-)
diff --git a/dlls/windows.ui/tests/uisettings.c b/dlls/windows.ui/tests/uisettings.c index bd1e7a02d20..9711d93d051 100644 --- a/dlls/windows.ui/tests/uisettings.c +++ b/dlls/windows.ui/tests/uisettings.c @@ -152,14 +152,14 @@ static void test_UISettings(void) type = UIColorType_Foreground; hr = IUISettings3_GetColorValue( uisettings3, type, &value ); ok( hr == S_OK, "GetColorValue returned %#lx\n", hr ); - todo_wine ok( value.A == 255 && value.R == 255 && value.G == 255 && value.B == 255, + ok( value.A == 255 && value.R == 255 && value.G == 255 && value.B == 255, "got unexpected value.A == %d value.R == %d value.G == %d value.B == %d\n", value.A, value.R, value.G, value.B );
reset_color( &value ); type = UIColorType_Background; hr = IUISettings3_GetColorValue( uisettings3, type, &value ); ok( hr == S_OK, "GetColorValue returned %#lx\n", hr ); - todo_wine ok( value.A == 255 && value.R == 0 && value.G == 0 && value.B == 0, + ok( value.A == 255 && value.R == 0 && value.G == 0 && value.B == 0, "got unexpected value.A == %d value.R == %d value.G == %d value.B == %d\n", value.A, value.R, value.G, value.B );
done: diff --git a/programs/winecfg/resource.h b/programs/winecfg/resource.h index dd46bc71b40..b1ff904101c 100644 --- a/programs/winecfg/resource.h +++ b/programs/winecfg/resource.h @@ -176,6 +176,7 @@ #define IDC_SYSPARAM_COLOR 1416 #define IDC_SYSPARAM_FONT 1417 #define IDC_ENABLE_FILE_ASSOCIATIONS 1418 +#define IDC_ENABLE_WINRT_DARK_THEME 1419
#define IDC_SYSPARAMS_BUTTON 8400 #define IDC_SYSPARAMS_BUTTON_TEXT 8401 diff --git a/programs/winecfg/theme.c b/programs/winecfg/theme.c index bbc4d3cc11f..980bd7b65b8 100644 --- a/programs/winecfg/theme.c +++ b/programs/winecfg/theme.c @@ -43,6 +43,10 @@
WINE_DEFAULT_DEBUG_CHANNEL(winecfg);
+static const WCHAR *subkey = L"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"; +static const WCHAR *name = L"AppsUseLightTheme"; +static const HKEY root = HKEY_CURRENT_USER; + /* UXTHEME functions not in the headers */
typedef struct tagTHEMENAMES @@ -1083,6 +1087,26 @@ static void on_select_font(HWND hDlg) SendMessageW(GetParent(hDlg), PSM_CHANGED, 0, 0); }
+static void init_app_theme(HWND hDlg) +{ + WCHAR *buf = get_reg_key(root, subkey, name, L"\0001"); + int state = (!wcscmp(buf, L"")) ? BST_CHECKED : BST_UNCHECKED; + + CheckDlgButton(hDlg, IDC_ENABLE_WINRT_DARK_THEME, state); + + free(buf); +} + +static void update_app_theme(HWND hDlg) +{ + DWORD state = 1; + + if (IsDlgButtonChecked(hDlg, IDC_ENABLE_WINRT_DARK_THEME) == BST_CHECKED) + state = 0; + + set_reg_key_dword(root, subkey, name, state); +} + static void init_mime_types(HWND hDlg) { WCHAR *buf = get_reg_key(config_key, keypath(L"FileOpenAssociations"), L"Enable", L"Y"); @@ -1131,6 +1155,7 @@ ThemeDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) update_shell_folder_listview(hDlg); read_sysparams(hDlg); init_mime_types(hDlg); + init_app_theme(hDlg); init_dialog(hDlg); break;
@@ -1256,6 +1281,11 @@ ThemeDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) update_mime_types(hDlg); SendMessageW(GetParent(hDlg), PSM_CHANGED, 0, 0); break; + + case IDC_ENABLE_WINRT_DARK_THEME: + update_app_theme(hDlg); + SendMessageW(GetParent(hDlg), PSM_CHANGED, 0, 0); + break; } break; } @@ -1275,6 +1305,7 @@ ThemeDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) read_shell_folder_link_targets(); update_shell_folder_listview(hDlg); update_mime_types(hDlg); + update_app_theme(hDlg); update_window_pos(); SetWindowLongPtrW(hDlg, DWLP_MSGRESULT, PSNRET_NOERROR); break; diff --git a/programs/winecfg/winecfg.rc b/programs/winecfg/winecfg.rc index 8775b3b691b..76e0c2f5c29 100644 --- a/programs/winecfg/winecfg.rc +++ b/programs/winecfg/winecfg.rc @@ -298,8 +298,9 @@ BEGIN EDITTEXT IDC_SYSPARAM_SIZE,157,75,30,13,ES_AUTOHSCROLL | WS_TABSTOP | WS_DISABLED CONTROL "",IDC_SYSPARAM_SIZE_UD,UPDOWN_CLASSA,UDS_SETBUDDYINT | UDS_ALIGNRIGHT | WS_DISABLED, 185,75,15,13
- GROUPBOX "MIME types",IDC_STATIC,8,95,244,23 - CONTROL "Manage file &associations",IDC_ENABLE_FILE_ASSOCIATIONS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,105,230,10 + GROUPBOX "Misc",IDC_STATIC,8,95,244,23 + CONTROL "Manage file &associations",IDC_ENABLE_FILE_ASSOCIATIONS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,105,100,10 + CONTROL "Enable WinRT &dark theme",IDC_ENABLE_WINRT_DARK_THEME,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,126,105,125,10
PUSHBUTTON "&Font...",IDC_SYSPARAM_FONT,190,75,55,13,WS_DISABLED GROUPBOX "Folders",IDC_STATIC,8,120,244,94
From: Mohamad Al-Jaf mohamadaljaf@gmail.com
--- po/ar.po | 4 ++++ po/ast.po | 4 ++++ po/bg.po | 4 ++++ po/ca.po | 4 ++++ po/cs.po | 4 ++++ po/da.po | 4 ++++ po/de.po | 4 ++++ po/el.po | 4 ++++ po/en.po | 4 ++++ po/en_US.po | 4 ++++ po/eo.po | 4 ++++ po/es.po | 4 ++++ po/fa.po | 4 ++++ po/fi.po | 4 ++++ po/fr.po | 4 ++++ po/he.po | 4 ++++ po/hi.po | 4 ++++ po/hr.po | 4 ++++ po/hu.po | 4 ++++ po/it.po | 4 ++++ po/ja.po | 4 ++++ po/ko.po | 4 ++++ po/lt.po | 4 ++++ po/ml.po | 4 ++++ po/nb_NO.po | 4 ++++ po/nl.po | 4 ++++ po/or.po | 4 ++++ po/pa.po | 4 ++++ po/pl.po | 4 ++++ po/pt_BR.po | 4 ++++ po/pt_PT.po | 4 ++++ po/rm.po | 4 ++++ po/ro.po | 4 ++++ po/ru.po | 4 ++++ po/si.po | 4 ++++ po/sk.po | 4 ++++ po/sl.po | 4 ++++ po/sr_RS@cyrillic.po | 4 ++++ po/sr_RS@latin.po | 4 ++++ po/sv.po | 4 ++++ po/ta.po | 4 ++++ po/te.po | 4 ++++ po/th.po | 4 ++++ po/tr.po | 4 ++++ po/uk.po | 4 ++++ po/wa.po | 4 ++++ po/wine.pot | 4 ++++ po/zh_CN.po | 4 ++++ po/zh_TW.po | 4 ++++ 49 files changed, 196 insertions(+)
diff --git a/po/ar.po b/po/ar.po index cd62e2e0778..9a7a5cb6254 100644 --- a/po/ar.po +++ b/po/ar.po @@ -19627,6 +19627,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "تفعيل سمة WinRT الداكنة" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "الم&جلدات" diff --git a/po/ast.po b/po/ast.po index a7eee717c32..64ee1f1f16f 100644 --- a/po/ast.po +++ b/po/ast.po @@ -18233,6 +18233,10 @@ msgstr "Tribes MIME" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Activar el tema &escuru de WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Carpetes" diff --git a/po/bg.po b/po/bg.po index a9e78c77521..3866d754e8c 100644 --- a/po/bg.po +++ b/po/bg.po @@ -18275,6 +18275,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Активирайте тъмната тема WinRT" + #: programs/winecfg/winecfg.rc:306 #, fuzzy msgid "Folders" diff --git a/po/ca.po b/po/ca.po index a430456bbcd..0945069890c 100644 --- a/po/ca.po +++ b/po/ca.po @@ -18558,6 +18558,10 @@ msgstr "Tipus MIME" msgid "Manage file &associations" msgstr "Gestiona &associacions de fitxer"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Activa el tema &fosc de WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Carpetes" diff --git a/po/cs.po b/po/cs.po index d51e26c5b6a..351edba98e0 100644 --- a/po/cs.po +++ b/po/cs.po @@ -19023,6 +19023,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Povolit &tmavý motiv WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Adresáře" diff --git a/po/da.po b/po/da.po index b8de8dcdd7c..6a5dd4cd62c 100644 --- a/po/da.po +++ b/po/da.po @@ -19542,6 +19542,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Aktiver WinRT &mørkt tema" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Mapper" diff --git a/po/de.po b/po/de.po index 20c8a6be64a..31faf13a7db 100644 --- a/po/de.po +++ b/po/de.po @@ -18524,6 +18524,10 @@ msgstr "MIME-Typen" msgid "Manage file &associations" msgstr "Datei&zuordnungen verwalten"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Aktivieren Sie das &dunkle WinRT-Thema" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Ordner" diff --git a/po/el.po b/po/el.po index 58674907408..687bac5c5ac 100644 --- a/po/el.po +++ b/po/el.po @@ -17877,6 +17877,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Ενεργοποιήστε το σκοτεινό θέμα WinRT" + #: programs/winecfg/winecfg.rc:306 #, fuzzy msgid "Folders" diff --git a/po/en.po b/po/en.po index 1ed59037d4c..bfbba9af9ce 100644 --- a/po/en.po +++ b/po/en.po @@ -18405,6 +18405,10 @@ msgstr "MIME types" msgid "Manage file &associations" msgstr "Manage file &associations"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Enable WinRT &dark theme" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Folders" diff --git a/po/en_US.po b/po/en_US.po index 2fb6c765106..c0d8cdccbcb 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -18405,6 +18405,10 @@ msgstr "MIME types" msgid "Manage file &associations" msgstr "Manage file &associations"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Enable WinRT &dark theme" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Folders" diff --git a/po/eo.po b/po/eo.po index 2e6483b907a..034482a7f27 100644 --- a/po/eo.po +++ b/po/eo.po @@ -18564,6 +18564,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Ebligu WinRT &malhelan temon" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Dosierujoj" diff --git a/po/es.po b/po/es.po index 3332c8ae60d..41af89232bd 100644 --- a/po/es.po +++ b/po/es.po @@ -18871,6 +18871,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Habilitar el tema &oscuro de WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Carpeta" diff --git a/po/fa.po b/po/fa.po index 5b3d791f4b5..e6bc37ab4f9 100644 --- a/po/fa.po +++ b/po/fa.po @@ -18079,6 +18079,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "تم تاریک WinRT را فعال کنید" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "" diff --git a/po/fi.po b/po/fi.po index b086164e67d..07280f7522b 100644 --- a/po/fi.po +++ b/po/fi.po @@ -18366,6 +18366,10 @@ msgstr "MIME-tyypit" msgid "Manage file &associations" msgstr "&Muokkaa tiedostosidoksia"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Ota WinRT &tumma teema käyttöön" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Kansiot" diff --git a/po/fr.po b/po/fr.po index bbbce1860d2..21a370fb4c5 100644 --- a/po/fr.po +++ b/po/fr.po @@ -19127,6 +19127,10 @@ msgstr "Types MIME" msgid "Manage file &associations" msgstr "&Gérer les associations de fichier"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Activer le thème &sombre WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Dossiers" diff --git a/po/he.po b/po/he.po index a94aee1f02c..c9b0c395357 100644 --- a/po/he.po +++ b/po/he.po @@ -19051,6 +19051,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "הפעל ערכת נושא כהה של WinRT" + #: programs/winecfg/winecfg.rc:306 #, fuzzy msgid "Folders" diff --git a/po/hi.po b/po/hi.po index 245b3e6c37d..ae9530cc976 100644 --- a/po/hi.po +++ b/po/hi.po @@ -17537,6 +17537,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "WinRT डार्क थीम सक्षम करें" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "" diff --git a/po/hr.po b/po/hr.po index 8b664e48c20..765bbca31db 100644 --- a/po/hr.po +++ b/po/hr.po @@ -18990,6 +18990,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Omogući &tamnu temu WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Mape" diff --git a/po/hu.po b/po/hu.po index 483ce7f0773..4dc241f48a0 100644 --- a/po/hu.po +++ b/po/hu.po @@ -19537,6 +19537,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Engedélyezze a WinRT &sötét témát" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Rendszermappák" diff --git a/po/it.po b/po/it.po index 2a8ffe830a8..d12c5a42e51 100644 --- a/po/it.po +++ b/po/it.po @@ -19631,6 +19631,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Abilita tema &scuro WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Cartelle" diff --git a/po/ja.po b/po/ja.po index 98969c70319..6fdf74ae8cc 100644 --- a/po/ja.po +++ b/po/ja.po @@ -18406,6 +18406,10 @@ msgstr "MIME タイプ" msgid "Manage file &associations" msgstr "ファイル関連付けの管理(&A)"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "WinRT ダーク テーマを有効にする" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "フォルダー" diff --git a/po/ko.po b/po/ko.po index da9b570fe48..8a245ecc1d5 100644 --- a/po/ko.po +++ b/po/ko.po @@ -18344,6 +18344,10 @@ msgstr "MIME 형식" msgid "Manage file &associations" msgstr "Wine 관련 파일 연결을 데스크톱에 추가합니다(&A)"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "WinRT 어두운 테마 활성화" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "폴더" diff --git a/po/lt.po b/po/lt.po index 1f8c29da30c..b4f12d294c3 100644 --- a/po/lt.po +++ b/po/lt.po @@ -18429,6 +18429,10 @@ msgstr "MIME tipai" msgid "Manage file &associations" msgstr "Valdyti failų susie&jimus"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Įjungti &tamsią WinRT temą" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Aplankai" diff --git a/po/ml.po b/po/ml.po index 176f27e3be5..ca0be06c76b 100644 --- a/po/ml.po +++ b/po/ml.po @@ -17536,6 +17536,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "WinRT ഇരുണ്ട തീം പ്രവർത്തനക്ഷമമാക്കുക" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "" diff --git a/po/nb_NO.po b/po/nb_NO.po index f73e4ba73c0..f8008c35d2d 100644 --- a/po/nb_NO.po +++ b/po/nb_NO.po @@ -19094,6 +19094,10 @@ msgstr "MIME typer" msgid "Manage file &associations" msgstr "Behandle fil &assosiasjoner"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Aktiver WinRT &mørkt tema" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Mappe" diff --git a/po/nl.po b/po/nl.po index 6daa1fb45c0..80b3c848939 100644 --- a/po/nl.po +++ b/po/nl.po @@ -18500,6 +18500,10 @@ msgstr "Bestandassociaties" msgid "Manage file &associations" msgstr "Toestaan dat bestandassociaties worden gemaakt"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Schakel WinRT &donker thema in" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Speciale Mappen" diff --git a/po/or.po b/po/or.po index 06b6e636225..73572cd771f 100644 --- a/po/or.po +++ b/po/or.po @@ -17522,6 +17522,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "WinRT ଅନ୍ଧାର ଥିମ୍ ସକ୍ଷମ କରନ୍ତୁ" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "" diff --git a/po/pa.po b/po/pa.po index 2c52f97474c..32ae51af234 100644 --- a/po/pa.po +++ b/po/pa.po @@ -17522,6 +17522,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "WinRT ਡਾਰਕ ਥੀਮ ਨੂੰ ਸਮਰੱਥ ਬਣਾਓ" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "" diff --git a/po/pl.po b/po/pl.po index fb41e7fc294..eb5270f4229 100644 --- a/po/pl.po +++ b/po/pl.po @@ -18632,6 +18632,10 @@ msgstr "Typy MIME" msgid "Manage file &associations" msgstr "Z&arządzaj skojarzeniami plików"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Włącz &ciemny motyw WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Katalogi" diff --git a/po/pt_BR.po b/po/pt_BR.po index b1c24d68075..18570429264 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -18697,6 +18697,10 @@ msgstr "Tipos MIME" msgid "Manage file &associations" msgstr "Gerenciar &associação de arquivos"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Habilitar o tema &escuro do WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Pastas" diff --git a/po/pt_PT.po b/po/pt_PT.po index 4a816399c67..637cfb819b0 100644 --- a/po/pt_PT.po +++ b/po/pt_PT.po @@ -19275,6 +19275,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Ativar o tema &escuro WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Pastas" diff --git a/po/rm.po b/po/rm.po index 90aa8a8dd3e..80b691ebfff 100644 --- a/po/rm.po +++ b/po/rm.po @@ -17661,6 +17661,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Abilitar tema &scur WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "" diff --git a/po/ro.po b/po/ro.po index 7931f273f5a..a2c7274ea98 100644 --- a/po/ro.po +++ b/po/ro.po @@ -19293,6 +19293,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Activare tema î&ntunecată WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Dosare" diff --git a/po/ru.po b/po/ru.po index fcc06c510e1..b70ea3d7eda 100644 --- a/po/ru.po +++ b/po/ru.po @@ -18660,6 +18660,10 @@ msgstr "Типы MIME" msgid "Manage file &associations" msgstr "Управлять &ассоциациями файлов"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Включить темную тему WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Папки" diff --git a/po/si.po b/po/si.po index aecca20f418..7d0b482cbaf 100644 --- a/po/si.po +++ b/po/si.po @@ -18298,6 +18298,10 @@ msgstr "MIME වර්ග" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "WinRT අඳුරු තේමාව සබල කරන්න" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "ෆෝල්ඩර" diff --git a/po/sk.po b/po/sk.po index 4d6695dbc60..035613dbc04 100644 --- a/po/sk.po +++ b/po/sk.po @@ -18749,6 +18749,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Povoliť &tmavú tému WinRT" + #: programs/winecfg/winecfg.rc:306 #, fuzzy msgid "Folders" diff --git a/po/sl.po b/po/sl.po index 7803831f3c0..1c2eac217be 100644 --- a/po/sl.po +++ b/po/sl.po @@ -19560,6 +19560,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Omogoči &temno temo WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Mape" diff --git a/po/sr_RS@cyrillic.po b/po/sr_RS@cyrillic.po index af99154f535..138ddc12693 100644 --- a/po/sr_RS@cyrillic.po +++ b/po/sr_RS@cyrillic.po @@ -18863,6 +18863,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Омогући WinRT тему тамно" + #: programs/winecfg/winecfg.rc:306 #, fuzzy msgid "Folders" diff --git a/po/sr_RS@latin.po b/po/sr_RS@latin.po index 6218024b27d..6cedd447c4e 100644 --- a/po/sr_RS@latin.po +++ b/po/sr_RS@latin.po @@ -19064,6 +19064,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Omogući WinRT &tamnu temu" + #: programs/winecfg/winecfg.rc:306 #, fuzzy msgid "Folders" diff --git a/po/sv.po b/po/sv.po index 9923505bebb..dfb92e5ed4e 100644 --- a/po/sv.po +++ b/po/sv.po @@ -19229,6 +19229,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Aktivera WinRT &mörkt tema" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Mappar" diff --git a/po/ta.po b/po/ta.po index e4fb8ceb940..b45841ec21e 100644 --- a/po/ta.po +++ b/po/ta.po @@ -17497,6 +17497,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "WinRT இருண்ட தீமை இயக்கவும்" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "" diff --git a/po/te.po b/po/te.po index c56da2da337..ee684a7ba9a 100644 --- a/po/te.po +++ b/po/te.po @@ -17522,6 +17522,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "WinRT డార్క్ థీమ్ని ప్రారంభించండి" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "" diff --git a/po/th.po b/po/th.po index a235b30eb44..ab73f367b4f 100644 --- a/po/th.po +++ b/po/th.po @@ -18183,6 +18183,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "เปิดใช้งานธีมสีเข้มของ WinRT" + #: programs/winecfg/winecfg.rc:306 #, fuzzy msgid "Folders" diff --git a/po/tr.po b/po/tr.po index ead4e260bae..8a4efc368e8 100644 --- a/po/tr.po +++ b/po/tr.po @@ -18573,6 +18573,10 @@ msgstr "MIME türleri" msgid "Manage file &associations" msgstr "&Dosya ilişkilendirmelerini düzenle"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "WinRT &karanlık temasını etkinleştir" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Klasörler" diff --git a/po/uk.po b/po/uk.po index 5ee39714a38..d7467951e49 100644 --- a/po/uk.po +++ b/po/uk.po @@ -18508,6 +18508,10 @@ msgstr "Типи MIME" msgid "Manage file &associations" msgstr "Керування &асоціаціями файлів"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Увімкніть темну тему WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "Теки" diff --git a/po/wa.po b/po/wa.po index 34673cb6aa8..98410c23db5 100644 --- a/po/wa.po +++ b/po/wa.po @@ -18037,6 +18037,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "Activé le thème &sombre WinRT" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "" diff --git a/po/wine.pot b/po/wine.pot index 4d92ac2a36b..5ce3435450c 100644 --- a/po/wine.pot +++ b/po/wine.pot @@ -17426,6 +17426,10 @@ msgstr "" msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "" diff --git a/po/zh_CN.po b/po/zh_CN.po index 7c479a3d466..b7ac5705829 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -18153,6 +18153,10 @@ msgstr "MIME 类型" msgid "Manage file &associations" msgstr "管理文件关联(&A)"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "启用 WinRT 暗色主题(&D)" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "文件夹" diff --git a/po/zh_TW.po b/po/zh_TW.po index 12ecea535b7..46d01e70268 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -18219,6 +18219,10 @@ msgstr "MIME 類型" msgid "Manage file &associations" msgstr "管理檔案關聯(&A)"
+#: programs/winecfg/winecfg.rc:304 +msgid "Enable WinRT &dark theme" +msgstr "启用WinRT黑暗主题(&D)" + #: programs/winecfg/winecfg.rc:306 msgid "Folders" msgstr "資料夾"
Zhiyi Zhang (@zhiyi) commented about loader/wine.inf.in:
ErrorControl=1
[ThemeManager] +HKCU,"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize","AppsUseLightTheme",0x10001,0x00000001
You should use 0x10003 instead of 0x10001 because you would want to keep user settings if they are present, for example, after a wine version upgrade.
Zhiyi Zhang (@zhiyi) commented about programs/winecfg/theme.c:
SendMessageW(GetParent(hDlg), PSM_CHANGED, 0, 0);
}
+static void init_app_theme(HWND hDlg)
There are already some theme helper functions to init theme settings. Let's merge these into them.
Zhiyi Zhang (@zhiyi) commented about programs/winecfg/winecfg.rc:
EDITTEXT IDC_SYSPARAM_SIZE,157,75,30,13,ES_AUTOHSCROLL | WS_TABSTOP | WS_DISABLED CONTROL "",IDC_SYSPARAM_SIZE_UD,UPDOWN_CLASSA,UDS_SETBUDDYINT | UDS_ALIGNRIGHT | WS_DISABLED, 185,75,15,13
- GROUPBOX "MIME types",IDC_STATIC,8,95,244,23
- CONTROL "Manage file &associations",IDC_ENABLE_FILE_ASSOCIATIONS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,105,230,10
- GROUPBOX "Misc",IDC_STATIC,8,95,244,23
- CONTROL "Manage file &associations",IDC_ENABLE_FILE_ASSOCIATIONS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,105,100,10
- CONTROL "Enable WinRT &dark theme",IDC_ENABLE_WINRT_DARK_THEME,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,126,105,125,10
I think this checkbox should be inside the appearance section instead of the misc section. You may adjust the other buttons to make it fit.
Zhiyi Zhang (@zhiyi) commented about po/ar.po:
msgid "Manage file &associations" msgstr ""
+#: programs/winecfg/winecfg.rc:304
I don't think you need this commit. They will be updated automatically by Alexandre's script when your changes are merged.
I'm not sure the best way to add this (another checkbox, or a combobox?), but should there be an option to use the host system's dark mode setting in addition to enabled/disabled?
On Tue Feb 14 23:19:33 2023 +0000, Brendan Shanks wrote:
I'm not sure the best way to add this (another checkbox, or a combobox?), but should there be an option to use the host system's dark mode setting in addition to enabled/disabled?
host system's dark mode support requires dbus, I guess we could implement that using mountmgr or something and I think it also is a better idea to just make a basic checkbox in winecfg before doing anything more advanced.