Changeset View
Changeset View
Standalone View
Standalone View
applets/binary-clock/package/contents/ui/configGeneral.qml
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * Copyright 2014 Joseph Wenninger <jowenn@kde.org> | 2 | * Copyright 2014 Joseph Wenninger <jowenn@kde.org> | ||
3 | * Copyright 2018 Piotr Kąkol <piotrkakol@protonmail.com> | ||||
3 | * | 4 | * | ||
4 | * Based on analog-clock configGeneral.qml: | 5 | * Based on analog-clock configGeneral.qml: | ||
5 | * Copyright 2013 David Edmundson <davidedmundson@kde.org> | 6 | * Copyright 2013 David Edmundson <davidedmundson@kde.org> | ||
6 | * | 7 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | 9 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | 10 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | 11 | * (at your option) any later version. | ||
Show All 16 Lines | |||||
27 | 28 | | |||
28 | ColumnLayout { | 29 | ColumnLayout { | ||
29 | id: generalConfigPage | 30 | id: generalConfigPage | ||
30 | 31 | | |||
31 | property alias cfg_showGrid: showGridCheckBox.checked | 32 | property alias cfg_showGrid: showGridCheckBox.checked | ||
32 | property alias cfg_showOffLeds: showOffLedsCheckBox.checked | 33 | property alias cfg_showOffLeds: showOffLedsCheckBox.checked | ||
33 | property alias cfg_showSeconds: showSecondsCheckBox.checked | 34 | property alias cfg_showSeconds: showSecondsCheckBox.checked | ||
34 | property alias cfg_showBcdFormat: showBcdFormatCheckBox.checked | 35 | property alias cfg_showBcdFormat: showBcdFormatCheckBox.checked | ||
36 | property alias cfg_useCustomGridThickness: useCustomGridThicknessCheckBox.checked | ||||
37 | property alias cfg_gridThickness: gridThicknessSpinBox.value | ||||
35 | property alias cfg_useCustomColorForActive: useCustomColorForActiveCheckBox.checked | 38 | property alias cfg_useCustomColorForActive: useCustomColorForActiveCheckBox.checked | ||
36 | property alias cfg_customColorForActive: customColorForActive.color | 39 | property alias cfg_customColorForActive: customColorForActive.color | ||
37 | property alias cfg_useCustomColorForInactive: useCustomColorForInactiveCheckBox.checked | 40 | property alias cfg_useCustomColorForInactive: useCustomColorForInactiveCheckBox.checked | ||
38 | property alias cfg_customColorForInactive: customColorForInactive.color | 41 | property alias cfg_customColorForInactive: customColorForInactive.color | ||
39 | property alias cfg_useCustomColorForGrid: useCustomColorForGridCheckBox.checked | 42 | property alias cfg_useCustomColorForGrid: useCustomColorForGridCheckBox.checked | ||
40 | property alias cfg_customColorForGrid: customColorForGrid.color | 43 | property alias cfg_customColorForGrid: customColorForGrid.color | ||
41 | 44 | | |||
42 | QtControls.GroupBox { | 45 | QtControls.GroupBox { | ||
Show All 16 Lines | 51 | ColumnLayout { | |||
59 | QtControls.CheckBox { | 62 | QtControls.CheckBox { | ||
60 | id: showSecondsCheckBox | 63 | id: showSecondsCheckBox | ||
61 | text: i18nc("@option:check", "Display seconds") | 64 | text: i18nc("@option:check", "Display seconds") | ||
62 | } | 65 | } | ||
63 | QtControls.CheckBox { | 66 | QtControls.CheckBox { | ||
64 | id: showBcdFormatCheckBox | 67 | id: showBcdFormatCheckBox | ||
65 | text: i18nc("@option:check", "Display in BCD format (decimal)") | 68 | text: i18nc("@option:check", "Display in BCD format (decimal)") | ||
66 | } | 69 | } | ||
70 | GridLayout { | ||||
71 | columns: 2 | ||||
72 | QtControls.CheckBox { | ||||
73 | id: useCustomGridThicknessCheckBox | ||||
74 | text: i18nc("@option:check", "Use custom grid thickness") | ||||
75 | } | ||||
76 | QtControls.SpinBox { | ||||
77 | id: gridThicknessSpinBox | ||||
78 | } | ||||
79 | } | ||||
67 | } | 80 | } | ||
68 | } | 81 | } | ||
69 | 82 | | |||
70 | QtControls.GroupBox { | 83 | QtControls.GroupBox { | ||
71 | Layout.fillWidth: true | 84 | Layout.fillWidth: true | ||
72 | flat: true | 85 | flat: true | ||
73 | 86 | | |||
74 | title: i18nc("@title:group", "Colors") | 87 | title: i18nc("@title:group", "Colors") | ||
75 | 88 | | |||
76 | GridLayout { | 89 | GridLayout { | ||
77 | columns: 2; | 90 | columns: 2 | ||
78 | QtControls.CheckBox { | 91 | QtControls.CheckBox { | ||
79 | id: useCustomColorForActiveCheckBox | 92 | id: useCustomColorForActiveCheckBox | ||
80 | text: i18nc("@option:check", "Use custom color for active LEDs") | 93 | text: i18nc("@option:check", "Use custom color for active LEDs") | ||
81 | } | 94 | } | ||
82 | KQuickControls.ColorButton { | 95 | KQuickControls.ColorButton { | ||
83 | id: customColorForActive | 96 | id: customColorForActive | ||
84 | enabled: useCustomColorForActiveCheckBox.checked | 97 | enabled: useCustomColorForActiveCheckBox.checked | ||
85 | } | 98 | } | ||
Show All 26 Lines |