Skip to content

Commit cd9b6d9

Browse files
committed
Use GD_SLMFADER on mobile OS
This makes the app more usable on mobile OS. Fixes: #3585
1 parent f780bbf commit cd9b6d9

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

src/client.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
\******************************************************************************/
2424

2525
#include "client.h"
26+
#include "util.h"
2627

2728
/* Implementation *************************************************************/
2829
CClient::CClient ( const quint16 iPortNumber,
@@ -60,7 +61,7 @@ CClient::CClient ( const quint16 iPortNumber,
6061
bFraSiFactPrefSupported ( false ),
6162
bFraSiFactDefSupported ( false ),
6263
bFraSiFactSafeSupported ( false ),
63-
eGUIDesign ( GD_ORIGINAL ),
64+
eGUIDesign ( GD_DEFAULT ),
6465
eMeterStyle ( MT_LED_STRIPE ),
6566
bEnableAudioAlerts ( false ),
6667
bEnableOPUS64 ( false ),

src/clientdlg.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
\******************************************************************************/
2424

2525
#include "clientdlg.h"
26+
#include "util.h"
2627

2728
/* Implementation *************************************************************/
2829
CClientDlg::CClientDlg ( CClient* pNCliP,
@@ -41,7 +42,7 @@ CClientDlg::CClientDlg ( CClient* pNCliP,
4142
bDetectFeedback ( false ),
4243
bEnableIPv6 ( bNEnableIPv6 ),
4344
eLastRecorderState ( RS_UNDEFINED ), // for SetMixerBoardDeco
44-
eLastDesign ( GD_ORIGINAL ), // "
45+
eLastDesign ( GD_DEFAULT ), // "
4546
ClientSettingsDlg ( pNCliP, pNSetP, parent ),
4647
ChatDlg ( parent ),
4748
ConnectDlg ( pNSetP, bNewShowComplRegConnList, bNEnableIPv6, parent ),

src/util.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,14 @@ enum EGUIDesign
525525
GD_SLIMFADER = 2
526526
};
527527

528+
// Default, fallback skin if no skin was selected
529+
#if defined( Q_OS_IOS ) || defined( ANDROID ) || defined( Q_OS_ANDROID )
530+
// on mobile, slim UI is preferred for space reasons
531+
# define GD_DEFAULT GD_SLIMFADER
532+
#else
533+
# define GD_DEFAULT GD_ORIGINAL
534+
#endif
535+
528536
// MeterStyle enum -------------------------------------------------------------
529537
enum EMeterStyle
530538
{

0 commit comments

Comments
 (0)