From 6668b34bc5deb36e73aa45e0457ed6740f828efd Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sun, 12 Dec 2021 15:50:37 +0200 Subject: Implemented icon theme option. Changes in this commit include: * The option itself; * A method of updating the option right after Apply or Ok is pressed in the settings dialog; * A new WeatherIconPrivate class to store the methods previously in WeatherIcons, as well as the settings; * Improved icon name helper function in METAR parser; * A few cleanups to the WeatherIcon class. Signed-off-by: Mavridis Philippe --- kweather/prefdialogdata.ui | 63 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 54 insertions(+), 9 deletions(-) (limited to 'kweather/prefdialogdata.ui') diff --git a/kweather/prefdialogdata.ui b/kweather/prefdialogdata.ui index db4844e..8fa70b1 100644 --- a/kweather/prefdialogdata.ui +++ b/kweather/prefdialogdata.ui @@ -9,8 +9,8 @@ 0 0 - 429 - 341 + 761 + 464 @@ -27,6 +27,9 @@ 0 + + prefsDialogData + TabFocus @@ -50,7 +53,7 @@ - GroupBoxPanel + NoFrame Sunken @@ -67,7 +70,7 @@ TextLabel1_4_2_2 - &Location: + Lo&cation: m_reportLocation @@ -152,7 +155,10 @@ - &Show icon only + Show icon onl&y + + + Alt+Y 1 @@ -171,6 +177,9 @@ Show &icon and temperature + + Alt+I + 2 @@ -180,7 +189,7 @@ CheckBox10 - Show icon, temperature, &wind and pressure information + Show icon, temperature, wind &and pressure information true @@ -271,6 +280,44 @@ + + + m_iconTheme + + + Weather Icon + + + + unnamed + + + + m_systemIcons + + + &Use system icon theme + + + Alt+U + + + true + + + + + m_kweatherIcons + + + Use &KWeather theme + + + Alt+K + + + + groupBox3 @@ -320,7 +367,7 @@ - 170 + 637 20 @@ -329,8 +376,6 @@ - - m_enableLog -- cgit v1.2.1