Changeset View
Changeset View
Standalone View
Standalone View
kcms/nightcolor/package/contents/ui/main.qml
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Line(s) | 90 | Kirigami.InlineMessage { | |||
---|---|---|---|---|---|
94 | type: Kirigami.MessageType.Error | 94 | type: Kirigami.MessageType.Error | ||
95 | text: cA.errorText | 95 | text: cA.errorText | ||
96 | } | 96 | } | ||
97 | } | 97 | } | ||
98 | 98 | | |||
99 | ColumnLayout { | 99 | ColumnLayout { | ||
100 | spacing: 0 | 100 | spacing: 0 | ||
101 | 101 | | |||
102 | QQC2.Label { | ||||
103 | Layout.topMargin: Kirigami.Units.largeSpacing * 2 | ||||
104 | Layout.bottomMargin: Kirigami.Units.largeSpacing * 4 | ||||
105 | Layout.leftMargin: Kirigami.Units.smallSpacing | ||||
106 | Layout.rightMargin: Kirigami.Units.smallSpacing | ||||
107 | Layout.alignment: Qt.AlignHCenter | ||||
108 | | ||||
109 | text: i18n("Night Color can make the colors on the screen warmer to reduce eye strain.") | ||||
110 | wrapMode: Text.WordWrap | ||||
111 | } | ||||
112 | | ||||
102 | Kirigami.FormLayout { | 113 | Kirigami.FormLayout { | ||
103 | id: parentLayout | 114 | id: parentLayout | ||
104 | 115 | | |||
105 | QQC2.CheckBox { | 116 | QQC2.CheckBox { | ||
106 | id: activator | 117 | id: activator | ||
107 | text: i18n("Activate Night Color") | 118 | text: i18n("Activate Night Color") | ||
108 | enabled: cA.nightColorAvailable | 119 | enabled: cA.nightColorAvailable | ||
109 | checked: cA.active | 120 | checked: cA.active | ||
▲ Show 20 Lines • Show All 246 Lines • Show Last 20 Lines |