Launcher: fix some missing hard-coded styles
This commit is contained in:
parent
361bea19aa
commit
ff65689eb6
23 changed files with 55 additions and 38 deletions
|
@ -16,7 +16,7 @@ Rectangle {
|
||||||
Text {
|
Text {
|
||||||
id: label
|
id: label
|
||||||
text: qsTr("Add")
|
text: qsTr("Add")
|
||||||
color: Style.backgroundColor
|
color: Style.themeContrastTextColor
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
|
|
|
@ -7,6 +7,7 @@ Rectangle {
|
||||||
id: addCatalogPanel
|
id: addCatalogPanel
|
||||||
state: "start"
|
state: "start"
|
||||||
height: column.height
|
height: column.height
|
||||||
|
color: Style.panelBackground
|
||||||
|
|
||||||
readonly property bool isActive: (state != "start")
|
readonly property bool isActive: (state != "start")
|
||||||
Behavior on height {
|
Behavior on height {
|
||||||
|
|
|
@ -63,6 +63,7 @@ Item {
|
||||||
border.width: 1
|
border.width: 1
|
||||||
border.color: Style.frameColor
|
border.color: Style.frameColor
|
||||||
clip: true
|
clip: true
|
||||||
|
color: Style.panelBackground
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: catalogsColumn
|
id: catalogsColumn
|
||||||
|
@ -129,6 +130,7 @@ Item {
|
||||||
border.width: 1
|
border.width: 1
|
||||||
border.color: Style.frameColor
|
border.color: Style.frameColor
|
||||||
clip: true
|
clip: true
|
||||||
|
color: Style.panelBackground
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: aircraftPathsColumn
|
id: aircraftPathsColumn
|
||||||
|
@ -185,6 +187,7 @@ Item {
|
||||||
border.width: 1
|
border.width: 1
|
||||||
border.color: Style.frameColor
|
border.color: Style.frameColor
|
||||||
clip: true
|
clip: true
|
||||||
|
color: Style.panelBackground
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: addonModulePathsColumn
|
id: addonModulePathsColumn
|
||||||
|
@ -252,6 +255,7 @@ Item {
|
||||||
border.width: 1
|
border.width: 1
|
||||||
border.color: Style.frameColor
|
border.color: Style.frameColor
|
||||||
clip: true
|
clip: true
|
||||||
|
color: Style.panelBackground
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: sceneryPathsColumn
|
id: sceneryPathsColumn
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import QtQuick 2.4
|
import QtQuick 2.4
|
||||||
import "."
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
@ -32,7 +31,7 @@ Item {
|
||||||
anchors.right: gearIcon.left
|
anchors.right: gearIcon.left
|
||||||
anchors.rightMargin: Style.margin
|
anchors.rightMargin: Style.margin
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
color: "white"
|
color: Style.themeContrastTextColor
|
||||||
font.underline: mouse.containsMouse
|
font.underline: mouse.containsMouse
|
||||||
font.pixelSize: Style.baseFontPixelSize
|
font.pixelSize: Style.baseFontPixelSize
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ Item {
|
||||||
height: parent.height - 4
|
height: parent.height - 4
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
border.width: 1
|
border.width: 1
|
||||||
border.color: "#dfdfdf"
|
border.color: Style.minorFrameColor
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
@ -47,7 +47,7 @@ Item {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
border.width: 1
|
border.width: 1
|
||||||
border.color: "#7f7f7f"
|
border.color: Style.minorFrameColor
|
||||||
width: thumbnail.width
|
width: thumbnail.width
|
||||||
height: thumbnail.height
|
height: thumbnail.height
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
import FlightGear.Launcher 1.0 as FG
|
import FlightGear.Launcher 1.0 as FG
|
||||||
import FlightGear 1.0
|
import FlightGear 1.0
|
||||||
import "." // -> forces the qmldir to be loaded
|
|
||||||
|
|
||||||
FocusScope
|
FocusScope
|
||||||
{
|
{
|
||||||
|
@ -38,6 +37,7 @@ FocusScope
|
||||||
id: tabBar
|
id: tabBar
|
||||||
height: searchButton.height + (Style.margin * 2)
|
height: searchButton.height + (Style.margin * 2)
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
color: Style.backgroundColor
|
||||||
|
|
||||||
GridToggleButton {
|
GridToggleButton {
|
||||||
id: gridModeToggle
|
id: gridModeToggle
|
||||||
|
|
|
@ -17,13 +17,14 @@ Item {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: 8
|
anchors.leftMargin: 8
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
color: Style.panelBackground
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 12
|
width: 12
|
||||||
height: 12
|
height: 12
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
id: checkMark
|
id: checkMark
|
||||||
color: Style.themeColor
|
color: mouseArea.containsMouse ? Style.activeColor : Style.themeColor
|
||||||
visible: checked
|
visible: checked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,6 +124,16 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// background fill
|
||||||
|
Rectangle {
|
||||||
|
height: parent.height
|
||||||
|
anchors {
|
||||||
|
left: sidebar.right
|
||||||
|
right: parent.right
|
||||||
|
}
|
||||||
|
color: Style.backgroundColor
|
||||||
|
}
|
||||||
|
|
||||||
Settings {
|
Settings {
|
||||||
id: settings
|
id: settings
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ FocusScope {
|
||||||
border.color: root.enabled ? (edit.activeFocus ? Style.frameColor : Style.minorFrameColor) : Style.disabledMinorFrameColor
|
border.color: root.enabled ? (edit.activeFocus ? Style.frameColor : Style.minorFrameColor) : Style.disabledMinorFrameColor
|
||||||
border.width: 1
|
border.width: 1
|
||||||
clip: true
|
clip: true
|
||||||
|
color: Style.backgroundColor
|
||||||
|
|
||||||
TextInput {
|
TextInput {
|
||||||
id: edit
|
id: edit
|
||||||
|
|
|
@ -3,7 +3,6 @@ import QtQuick.Controls 2.2
|
||||||
|
|
||||||
import FlightGear 1.0
|
import FlightGear 1.0
|
||||||
import FlightGear.Launcher 1.0
|
import FlightGear.Launcher 1.0
|
||||||
import "."
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
@ -93,7 +92,7 @@ Item {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: "white"
|
color: Style.backgroundColor
|
||||||
}
|
}
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
|
@ -102,6 +101,7 @@ Item {
|
||||||
id: delegateRoot
|
id: delegateRoot
|
||||||
height: delegateContent.height + Style.margin
|
height: delegateContent.height + Style.margin
|
||||||
width: searchView.width
|
width: searchView.width
|
||||||
|
color: Style.backgroundColor
|
||||||
|
|
||||||
function itemDescription()
|
function itemDescription()
|
||||||
{
|
{
|
||||||
|
@ -126,10 +126,10 @@ Item {
|
||||||
height: Math.max(delegateIcon.height, delegateText.height)
|
height: Math.max(delegateIcon.height, delegateText.height)
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
Rectangle {
|
// Rectangle {
|
||||||
visible: delegateMouse.containsMouse
|
// visible: delegateMouse.containsMouse
|
||||||
color: "#cfcfcf"
|
// color: "#cfcfcf"
|
||||||
}
|
// }
|
||||||
|
|
||||||
PixmapImage {
|
PixmapImage {
|
||||||
id: delegateIcon
|
id: delegateIcon
|
||||||
|
@ -180,7 +180,7 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
StyledText {
|
||||||
id: headerText
|
id: headerText
|
||||||
text: qsTr("Location")
|
text: qsTr("Location")
|
||||||
font.pixelSize: Style.headingFontPixelSize
|
font.pixelSize: Style.headingFontPixelSize
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import QtQuick 2.4
|
import QtQuick 2.4
|
||||||
import FlightGear 1.0
|
import FlightGear 1.0
|
||||||
import FlightGear.Launcher 1.0
|
import FlightGear.Launcher 1.0
|
||||||
import "."
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
@ -94,7 +93,7 @@ Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
z: -1
|
z: -1
|
||||||
opacity: Style.panelOpacity
|
opacity: Style.panelOpacity
|
||||||
color: "white"
|
color: Style.panelBackground
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import QtQuick 2.4
|
import QtQuick 2.4
|
||||||
import FlightGear 1.0
|
import FlightGear 1.0
|
||||||
import FlightGear.Launcher 1.0
|
import FlightGear.Launcher 1.0
|
||||||
import "."
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
property alias geod: diagram.geod
|
property alias geod: diagram.geod
|
||||||
|
@ -53,7 +52,7 @@ Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
z: -1
|
z: -1
|
||||||
opacity: Style.panelOpacity
|
opacity: Style.panelOpacity
|
||||||
color: "white"
|
color: Style.panelBackground
|
||||||
}
|
}
|
||||||
|
|
||||||
RadioButtonGroup {
|
RadioButtonGroup {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import QtQuick 2.4
|
import QtQuick 2.4
|
||||||
import FlightGear 1.0
|
import FlightGear 1.0
|
||||||
import FlightGear.Launcher 1.0
|
import FlightGear.Launcher 1.0
|
||||||
import "."
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
property alias location: navaidData.guid
|
property alias location: navaidData.guid
|
||||||
|
@ -58,7 +57,7 @@ Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
z: -1
|
z: -1
|
||||||
opacity: Style.panelOpacity
|
opacity: Style.panelOpacity
|
||||||
color: "white"
|
color: Style.panelBackground
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
|
@ -45,9 +45,9 @@ Item {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: menuFrame
|
id: menuFrame
|
||||||
border.width: 1
|
border.width: 1
|
||||||
border.color: Style.themeColor
|
border.color: Style.minorFrameColor
|
||||||
height: contentBox.childrenRect.height + 2
|
height: contentBox.childrenRect.height + 2
|
||||||
color: "white"
|
color: Style.panelBackground
|
||||||
|
|
||||||
// width is computed during show(), but if we don't see a valid
|
// width is computed during show(), but if we don't see a valid
|
||||||
// value here, the Column doesn't position the items until
|
// value here, the Column doesn't position the items until
|
||||||
|
|
|
@ -191,6 +191,7 @@ FocusScope {
|
||||||
radius: Style.roundRadius
|
radius: Style.roundRadius
|
||||||
border.color: root.enable ? (edit.activeFocus ? Style.frameColor : Style.minorFrameColor) : Style.disabledMinorFrameColor
|
border.color: root.enable ? (edit.activeFocus ? Style.frameColor : Style.minorFrameColor) : Style.disabledMinorFrameColor
|
||||||
border.width: 1
|
border.width: 1
|
||||||
|
color: root.enabled ? Style.panelBackground : Style.backgroundColor
|
||||||
|
|
||||||
ClickableText {
|
ClickableText {
|
||||||
id: prefix
|
id: prefix
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import QtQuick 2.4
|
import QtQuick 2.4
|
||||||
import QtQuick.Controls 2.2
|
import QtQuick.Controls 2.2
|
||||||
import FlightGear 1.0
|
import FlightGear 1.0
|
||||||
import "."
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
|
@ -12,7 +11,7 @@ Rectangle {
|
||||||
property int maximumPermittedHeight: 450
|
property int maximumPermittedHeight: 450
|
||||||
property string displayRole: "display"
|
property string displayRole: "display"
|
||||||
|
|
||||||
color: "white"
|
color: Style.panelBackground
|
||||||
border.width: 1
|
border.width: 1
|
||||||
border.color: Style.minorFrameColor
|
border.color: Style.minorFrameColor
|
||||||
width: flick.width + Style.margin
|
width: flick.width + Style.margin
|
||||||
|
|
|
@ -12,6 +12,7 @@ Rectangle {
|
||||||
implicitHeight: edit.height + Style.margin
|
implicitHeight: edit.height + Style.margin
|
||||||
border.color: edit.activeFocus ? Style.frameColor : Style.minorFrameColor
|
border.color: edit.activeFocus ? Style.frameColor : Style.minorFrameColor
|
||||||
border.width: 1
|
border.width: 1
|
||||||
|
color: Style.panelBackground
|
||||||
|
|
||||||
signal editingFinished();
|
signal editingFinished();
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import QtQuick 2.4
|
import QtQuick 2.4
|
||||||
import FlightGear.Launcher 1.0
|
import FlightGear.Launcher 1.0
|
||||||
import FlightGear 1.0
|
import FlightGear 1.0
|
||||||
import "."
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
@ -62,6 +61,7 @@ Item {
|
||||||
border.width: 1
|
border.width: 1
|
||||||
height: currentChoiceText.implicitHeight + Style.margin
|
height: currentChoiceText.implicitHeight + Style.margin
|
||||||
clip: true
|
clip: true
|
||||||
|
color: Style.backgroundColor
|
||||||
|
|
||||||
anchors.left: label.right
|
anchors.left: label.right
|
||||||
anchors.leftMargin: Style.margin
|
anchors.leftMargin: Style.margin
|
||||||
|
|
|
@ -42,6 +42,7 @@ FocusScope
|
||||||
border.width: 1
|
border.width: 1
|
||||||
border.color: (mouse.containsMouse | active) ? Style.themeColor: Style.minorFrameColor
|
border.color: (mouse.containsMouse | active) ? Style.themeColor: Style.minorFrameColor
|
||||||
clip: true
|
clip: true
|
||||||
|
color: Style.backgroundColor
|
||||||
|
|
||||||
TextInput {
|
TextInput {
|
||||||
id: buttonText
|
id: buttonText
|
||||||
|
|
|
@ -3,10 +3,16 @@ import QtQuick.Controls 2.2
|
||||||
|
|
||||||
import FlightGear.Launcher 1.0
|
import FlightGear.Launcher 1.0
|
||||||
import FlightGear 1.0
|
import FlightGear 1.0
|
||||||
import "."
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: settings
|
id: settings
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
visible: _launcher.isSearchActive
|
||||||
|
anchors.fill: parent
|
||||||
|
color: Style.backgroundColor
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
// search 'dimming' rectangle
|
// search 'dimming' rectangle
|
||||||
visible: _launcher.isSearchActive
|
visible: _launcher.isSearchActive
|
||||||
|
@ -52,7 +58,7 @@ Item {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: headerText.height
|
height: headerText.height
|
||||||
|
|
||||||
Text {
|
StyledText {
|
||||||
id: headerText
|
id: headerText
|
||||||
text: qsTr("Settings")
|
text: qsTr("Settings")
|
||||||
font.pixelSize: Style.headingFontPixelSize
|
font.pixelSize: Style.headingFontPixelSize
|
||||||
|
|
|
@ -15,6 +15,7 @@ QtObject
|
||||||
readonly property string backgroundColor: "#ffffff"
|
readonly property string backgroundColor: "#ffffff"
|
||||||
readonly property string themeColor: "#1b7ad3"
|
readonly property string themeColor: "#1b7ad3"
|
||||||
readonly property string destructiveActionColor: "#c62703"
|
readonly property string destructiveActionColor: "#c62703"
|
||||||
|
readonly property string panelBackground: "#efefef"
|
||||||
|
|
||||||
readonly property string activeColor: Qt.darker(themeColor)
|
readonly property string activeColor: Qt.darker(themeColor)
|
||||||
readonly property string inverseActiveColor: "#2f2f2f"
|
readonly property string inverseActiveColor: "#2f2f2f"
|
||||||
|
|
|
@ -14,11 +14,6 @@ Item {
|
||||||
|
|
||||||
GettingStartedScope.controller: tips.controller
|
GettingStartedScope.controller: tips.controller
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
anchors.fill: parent
|
|
||||||
color: "#7f7f7f"
|
|
||||||
}
|
|
||||||
|
|
||||||
readonly property string __aircraftDescription: _launcher.selectedAircraftInfo.description
|
readonly property string __aircraftDescription: _launcher.selectedAircraftInfo.description
|
||||||
|
|
||||||
PreviewImage {
|
PreviewImage {
|
||||||
|
@ -129,7 +124,7 @@ Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
z: -1
|
z: -1
|
||||||
opacity: Style.panelOpacity
|
opacity: Style.panelOpacity
|
||||||
color: "white"
|
color: Style.panelBackground
|
||||||
}
|
}
|
||||||
|
|
||||||
Grid {
|
Grid {
|
||||||
|
|
|
@ -12,12 +12,12 @@ Rectangle {
|
||||||
height: buttonText.height + (radius * 2)
|
height: buttonText.height + (radius * 2)
|
||||||
radius: 6
|
radius: 6
|
||||||
|
|
||||||
color: mouse.containsMouse ? "#064989" : (active ? "#1b7ad3" : "white")
|
color: mouse.containsMouse ? Style.activeColor : (active ? Style.themeColor : Style.backgroundColor)
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: buttonText
|
id: buttonText
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
color: (active | mouse.containsMouse) ? "white" : "#3f3f3f"
|
color: (active | mouse.containsMouse) ? Style.themeContrastTextColor : Style.baseTextColor
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
Loading…
Add table
Reference in a new issue