2014-03-26 00:11:30 +01:00
|
|
|
/*
|
|
|
|
* Copyright 2014 Sebastian Kügler <sebas@kde.org>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
import QtQuick 2.1
|
|
|
|
|
|
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
|
|
import org.kde.plasma.components 2.0 as PlasmaComponents
|
|
|
|
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
|
|
|
import org.kde.kquickcontrolsaddons 2.0 as KQuickControlsAddons
|
|
|
|
|
|
|
|
// IconTab
|
|
|
|
|
|
|
|
Column {
|
|
|
|
|
|
|
|
width: 400
|
|
|
|
height: 400
|
|
|
|
|
|
|
|
spacing: units.gridUnit
|
|
|
|
|
|
|
|
id: themePage
|
|
|
|
anchors {
|
|
|
|
margins: units.largeSpacing
|
|
|
|
}
|
|
|
|
|
|
|
|
Row {
|
2014-03-26 01:10:41 +01:00
|
|
|
spacing: units.gridUnit/2
|
2014-03-26 00:11:30 +01:00
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
id: boxesCheck
|
|
|
|
text: "Show Boxes"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
id: fontCheck
|
|
|
|
text: checked ? "Oxygen-Sans" : "Comme"
|
|
|
|
}
|
2014-03-26 01:10:41 +01:00
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
id: lightCheck
|
|
|
|
//tristate: true
|
|
|
|
text: checked ? "Light" : "Regular"
|
|
|
|
}
|
2014-03-26 00:11:30 +01:00
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
id: paintedHeightCheck
|
|
|
|
text: "Painted Height"
|
|
|
|
checked: true
|
|
|
|
visible: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
FontGizmo {
|
|
|
|
id: giz1
|
2014-03-26 01:10:41 +01:00
|
|
|
font.pointSize: theme.smallestFont.pointSize
|
|
|
|
//font.family: "Oxygen-Sans"
|
2014-03-26 00:11:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
FontGizmo {
|
|
|
|
id: giz2
|
2014-03-26 01:10:41 +01:00
|
|
|
font.pixelSize: units.gridUnit * 1
|
2014-03-26 00:11:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
FontGizmo {
|
|
|
|
id: giz3
|
2014-03-26 01:10:41 +01:00
|
|
|
font.pixelSize: units.gridUnit * 2
|
|
|
|
}
|
2014-03-26 00:11:30 +01:00
|
|
|
|
2014-03-26 01:10:41 +01:00
|
|
|
FontGizmo {
|
|
|
|
id: giz4
|
|
|
|
font.pixelSize: units.gridUnit * 2
|
|
|
|
text: "AlignTop"
|
|
|
|
verticalAlignment: Text.AlignTop
|
|
|
|
}
|
|
|
|
|
|
|
|
FontGizmo {
|
|
|
|
id: giz5
|
|
|
|
font.pixelSize: units.gridUnit * 2
|
|
|
|
text: "AlignVCenter"
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
2014-03-26 00:11:30 +01:00
|
|
|
}
|
|
|
|
|
2014-03-26 01:10:41 +01:00
|
|
|
// FontGizmo {
|
|
|
|
// id: giz3
|
|
|
|
// font.family: "Oxygen Mono"
|
|
|
|
//
|
|
|
|
// }
|
|
|
|
//
|
2014-03-26 00:11:30 +01:00
|
|
|
Rectangle {
|
|
|
|
width: parent.width
|
|
|
|
height: units.gridUnit * 6
|
|
|
|
|
2014-03-26 01:10:41 +01:00
|
|
|
color: "transparent"
|
2014-03-26 00:11:30 +01:00
|
|
|
border.width: boxesCheck.checked ? 1 : 0
|
|
|
|
border.color: "red"
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: img
|
|
|
|
color: "orange"
|
|
|
|
height: units.gridUnit * 2
|
|
|
|
width: height
|
|
|
|
anchors {
|
|
|
|
top: parent.top
|
|
|
|
left: parent.left
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-26 01:10:41 +01:00
|
|
|
PlasmaExtras.Title {
|
2014-03-26 00:11:30 +01:00
|
|
|
|
2014-03-26 01:10:41 +01:00
|
|
|
font.weight: lightCheck.checked ? Font.Light : Font.Normal
|
2014-03-26 00:11:30 +01:00
|
|
|
font.family: fontCheck.text
|
|
|
|
font.pointSize: 24
|
|
|
|
verticalAlignment: Text.AlignTop
|
|
|
|
|
|
|
|
text: "That's a Headline"
|
|
|
|
|
|
|
|
//height: paintedHeight
|
|
|
|
height: units.gridUnit
|
|
|
|
font.pixelSize: height
|
|
|
|
anchors {
|
|
|
|
left: img.right
|
2014-03-26 01:10:41 +01:00
|
|
|
leftMargin: units.gridUnit / 2
|
2014-03-26 00:11:30 +01:00
|
|
|
top: img.top
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|