From eff93621daf43e9a7d3672175a6503a633e9d4a0 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sat, 1 May 2021 15:14:43 +0300 Subject: Added customization options for Kxkb Signed-off-by: Mavridis Philippe --- kxkb/kcmlayoutwidget.ui | 286 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 269 insertions(+), 17 deletions(-) (limited to 'kxkb/kcmlayoutwidget.ui') diff --git a/kxkb/kcmlayoutwidget.ui b/kxkb/kcmlayoutwidget.ui index 2830c10e9..dc3350a87 100644 --- a/kxkb/kcmlayoutwidget.ui +++ b/kxkb/kcmlayoutwidget.ui @@ -466,6 +466,214 @@ unnamed + + + grpStyle + + + Indicator Style + + + true + + + Here you can choose the way your keyboard layout indicator will look. + + + + unnamed + + + + radFlagLabel + + + &Both Flag and Label + + + true + + + + + radFlagOnly + + + &Flag Only + + + + + radLabelOnly + + + &Label Only + + + + + + + grpLabel + + + Label Style + + + Here you can choose the way the label of your keyboard layout indicator will be displayed. These options are relevant even when labels are disabled, for locales where the flag is missing. + + + + + radLabelUseTheme + + + Use &theme colors + + + false + + + + + radLabelUseCustom + + + Use c&ustom colors + + + false + + + + + spacer2 + + + Horizontal + + + Fixed + + + + 20 + 20 + + + + + + labelBgColor + + + Background color: + + + This color will be used as the indicator's background unless the indicator was set to display a flag. + + + false + + + + + bgColor + + + This color will be used as the indicator's background unless the indicator was set to display a flag. + + + false + + + + + spacer2 + + + Horizontal + + + Fixed + + + + 20 + 20 + + + + + + labelFgColor + + + Text color: + + + This color will be used to draw the language label on the indicator. + + + false + + + + + fgColor + + + This color will be used to draw the language label on the indicator. + + + false + + + + + separator1 + + + + + labelFontRequester + + + Label font: + + + This is the font which will be used by the layout indicator to draw the label. + + + + + labelFont + + + + + chkLabelShadow + + + Enable shadow + + + Draw a drop shadow behind the language label. In some cases this option can improve readability. + + + + + shColor + + + The drop shadow behind the language label will be of this color. + + + false + + + + grpSwitching @@ -512,20 +720,6 @@ - - - chkShowFlag - - - Show country flag - - - true - - - Shows country flag on background of layout name in tray icon - - grpBoxStickySwitching @@ -537,7 +731,7 @@ unnamed - + chkEnableSticky @@ -548,7 +742,24 @@ If you have more than two layouts and turn this option on, switching with the keyboard shortcut or clicking on the kxkb indicator will only cycle through the last few layouts. You can specify the number of layouts to rotate below. You can still access all layouts by right-clicking on the kxkb indicator. - + + + spacer2 + + + Horizontal + + + Fixed + + + + 20 + 20 + + + + textLabel1_5 @@ -562,7 +773,7 @@ spinBox1 - + spinStickyDepth @@ -575,6 +786,14 @@ 2 + + + 7 + 0 + 0 + 0 + + @@ -698,6 +917,36 @@ textLabel1_5 setEnabled(bool) + + radLabelUseCustom + toggled(bool) + bgColor + setEnabled(bool) + + + radLabelUseCustom + toggled(bool) + fgColor + setEnabled(bool) + + + radLabelUseCustom + toggled(bool) + labelBgColor + setEnabled(bool) + + + radLabelUseCustom + toggled(bool) + labelFgColor + setEnabled(bool) + + + chkLabelShadow + toggled(bool) + shColor + setEnabled(bool) + chkEnable toggled(bool) @@ -708,6 +957,9 @@ kiconloader.h kdialogbase.h + kcolorbutton.h + kseparator.h + tdefontrequester.h SmallIcon -- cgit v1.2.1