2
* This file is part of system-settings
4
* Copyright (C) 2013-14 Canonical Ltd.
6
* Contact: Iain Lane <iain.lane@canonical.com>
8
* This program is free software: you can redistribute it and/or modify it
9
* under the terms of the GNU General Public License version 3, as published
10
* by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranties of
14
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15
* PURPOSE. See the GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License along
18
* with this program. If not, see <http://www.gnu.org/licenses/>.
23
import SystemSettings 1.0
24
import Ubuntu.Components 0.1
25
import Ubuntu.Components.ListItems 0.1 as ListItem
26
import Ubuntu.SystemSettings.Brightness 1.0
30
objectName: "brightnessPage"
32
title: i18n.tr("Brightness")
34
UbuntuBrightnessPanel {
39
anchors.left: parent.left
40
anchors.right: parent.right
45
target: autoAdjustCheck
47
value: adjust.visible && gsettings.autoBrightness
52
text: i18n.tr("Adjust automatically")
53
visible: brightnessPanel.powerdRunning &&
54
brightnessPanel.autoBrightnessAvailable
57
checked: gsettings.autoBrightness
58
onClicked: gsettings.autoBrightness = checked
60
Component.onCompleted: clicked.connect(autoAdjustCheck.clicked)
65
"Brightens and dims the display to suit the surroundings")
66
visible: adjust.visible
72
schema.id: "com.ubuntu.touch.system"