2
* This file is part of uvolman.dfiloni
4
* Copyright (C) 2016 Devid Antonio Filoni https://launchpad.net/~d.filoni
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
import Ubuntu.Components 1.3
24
property alias slider: sliderId
25
property alias labelText: label.text
26
property alias divider: listItem.divider
28
anchors.left: parent.left
29
anchors.right: parent.right
40
topMargin: units.gu(1)
41
leftMargin: units.gu(2)
43
horizontalAlignment: Text.AlignLeft
44
text: i18n.tr("Volume")
51
topMargin: units.gu(1)
52
leftMargin: units.gu(2)
56
source: "image://theme/audio-volume-low-zero"
61
function formatValue(v) { return v.toFixed(2)*100 }
66
leftMargin: units.gu(6)
67
rightMargin: units.gu(6)
78
topMargin: units.gu(1)
79
rightMargin: units.gu(2)
83
source: "image://theme/audio-volume-high"