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 | * | 3 | * | ||
4 | * Based on analog-clock configGeneral.qml: | 4 | * Based on analog-clock configGeneral.qml: | ||
5 | * Copyright 2013 David Edmundson <davidedmundson@kde.org> | 5 | * Copyright 2013 David Edmundson <davidedmundson@kde.org> | ||
6 | * Copyright 2018 Piotr Kąkol <piotrkakol@protonmail.com> | ||||
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. | ||
11 | * | 12 | * | ||
12 | * This program is distributed in the hope that it will be useful, | 13 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | 16 | * GNU General Public License for more details. | ||
16 | * | 17 | * | ||
17 | * You should have received a copy of the GNU General Public License | 18 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | 19 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | ||
20 | */ | 21 | */ | ||
21 | 22 | | |||
22 | import QtQuick 2.0 | 23 | import QtQuick 2.0 | ||
23 | import QtQuick.Controls 1.0 as QtControls | 24 | import QtQuick.Controls 1.0 as QtControls | ||
24 | import QtQuick.Layouts 1.1 | 25 | import QtQuick.Layouts 1.1 | ||
25 | import org.kde.kquickcontrols 2.0 as KQuickControls | 26 | import org.kde.kquickcontrols 2.0 as KQuickControls | ||
26 | 27 | | |||
27 | | ||||
28 | ColumnLayout { | 28 | ColumnLayout { | ||
29 | id: generalConfigPage | 29 | id: generalConfigPage | ||
30 | 30 | | |||
31 | property alias cfg_showGrid: showGridCheckBox.checked | 31 | property alias cfg_showGrid: showGridCheckBox.checked | ||
32 | property alias cfg_showOffLeds: showOffLedsCheckBox.checked | 32 | property alias cfg_showOffLeds: showOffLedsCheckBox.checked | ||
33 | property alias cfg_showSeconds: showSecondsCheckBox.checked | 33 | property alias cfg_showSeconds: showSecondsCheckBox.checked | ||
34 | property alias cfg_showBcdFormat: showBcdFormatCheckBox.checked | 34 | property alias cfg_showBcdFormat: showBcdFormatCheckBox.checked | ||
35 | property alias cfg_useCustomColorForActive: useCustomColorForActiveCheckBox.checked | 35 | property alias cfg_useCustomColorForActive: useCustomColorForActiveCheckBox.checked | ||
Show All 33 Lines | |||||
69 | 69 | | |||
70 | QtControls.GroupBox { | 70 | QtControls.GroupBox { | ||
71 | Layout.fillWidth: true | 71 | Layout.fillWidth: true | ||
72 | flat: true | 72 | flat: true | ||
73 | 73 | | |||
74 | title: i18nc("@title:group", "Colors") | 74 | title: i18nc("@title:group", "Colors") | ||
75 | 75 | | |||
76 | GridLayout { | 76 | GridLayout { | ||
77 | columns: 2; | 77 | columns: 2 | ||
78 | QtControls.CheckBox { | 78 | QtControls.CheckBox { | ||
79 | id: useCustomColorForActiveCheckBox | 79 | id: useCustomColorForActiveCheckBox | ||
80 | text: i18nc("@option:check", "Use custom color for active LEDs") | 80 | text: i18nc("@option:check", "Use custom color for active LEDs") | ||
81 | } | 81 | } | ||
82 | KQuickControls.ColorButton { | 82 | KQuickControls.ColorButton { | ||
83 | id: customColorForActive | 83 | id: customColorForActive | ||
84 | enabled: useCustomColorForActiveCheckBox.checked | 84 | enabled: useCustomColorForActiveCheckBox.checked | ||
85 | } | 85 | } | ||
Show All 26 Lines |