Add the default application, but not completed

pull/22/head
reionwong 5 years ago
parent 340bb56484
commit 66bad01b68

@ -41,15 +41,15 @@ ItemPage {
id: layout id: layout
anchors.fill: parent anchors.fill: parent
// anchors.bottomMargin: FishUI.Units.largeSpacing // anchors.bottomMargin: FishUI.Units.largeSpacing
spacing: FishUI.Units.largeSpacing * 2 spacing: FishUI.Units.smallSpacing
RoundedItem { Label {
Label { text: qsTr("Theme")
text: qsTr("Theme") color: FishUI.Theme.disabledTextColor
color: FishUI.Theme.disabledTextColor leftPadding: FishUI.Units.largeSpacing
bottomPadding: FishUI.Units.smallSpacing }
}
RoundedItem {
// Light Mode and Dark Mode // Light Mode and Dark Mode
RowLayout { RowLayout {
spacing: FishUI.Units.largeSpacing * 2 spacing: FishUI.Units.largeSpacing * 2
@ -96,13 +96,17 @@ ItemPage {
} }
} }
RoundedItem { Item {
Label { height: FishUI.Units.largeSpacing
text: qsTr("Accent color") }
color: FishUI.Theme.disabledTextColor
bottomPadding: FishUI.Units.smallSpacing
}
Label {
text: qsTr("Accent color")
color: FishUI.Theme.disabledTextColor
leftPadding: FishUI.Units.largeSpacing
}
RoundedItem {
GridView { GridView {
id: accentColorView id: accentColorView
height: itemSize height: itemSize

@ -0,0 +1,86 @@
/*
* Copyright (C) 2021 CutefishOS Team.
*
* Author: revenmartin <revenmartin@gmail.com>
*
* 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 3 of the License, or
* 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, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.4
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
import FishUI 1.0 as FishUI
import "../"
ItemPage {
id: control
headerTitle: qsTr("Application")
Scrollable {
anchors.fill: parent
contentHeight: layout.implicitHeight
ColumnLayout {
id: layout
anchors.fill: parent
spacing: FishUI.Units.smallSpacing
Label {
text: qsTr("Default application")
leftPadding: FishUI.Units.largeSpacing
}
RoundedItem {
GridLayout {
columns: 2
columnSpacing: FishUI.Units.largeSpacing * 2
Label {
text: qsTr("Web browser")
}
ComboBox {
Layout.fillWidth: true
}
Label {
text: qsTr("File manager")
}
ComboBox {
Layout.fillWidth: true
}
Label {
text: qsTr("Email")
}
ComboBox {
Layout.fillWidth: true
}
Label {
text: qsTr("Terminal emulator")
}
ComboBox {
Layout.fillWidth: true
}
}
}
}
}
}

@ -64,7 +64,7 @@ ItemPage {
ColumnLayout { ColumnLayout {
id: layout id: layout
anchors.fill: parent anchors.fill: parent
spacing: FishUI.Units.largeSpacing * 2 spacing: FishUI.Units.smallSpacing
// Battery Info // Battery Info
BatteryItem { BatteryItem {
@ -118,15 +118,20 @@ ItemPage {
} }
} }
Item {
height: FishUI.Units.largeSpacing
}
Label {
text: qsTr("History")
color: FishUI.Theme.disabledTextColor
leftPadding: FishUI.Units.largeSpacing
}
RoundedItem { RoundedItem {
visible: history.count > 2 visible: history.count > 2
spacing: 0 spacing: 0
Label {
text: qsTr("History")
color: FishUI.Theme.disabledTextColor
}
HistoryGraph { HistoryGraph {
Layout.fillWidth: true Layout.fillWidth: true
height: 300 height: 300
@ -168,15 +173,19 @@ ItemPage {
} }
} }
Item {
height: FishUI.Units.largeSpacing
}
Label {
text: qsTr("Health")
color: FishUI.Theme.disabledTextColor
leftPadding: FishUI.Units.largeSpacing
}
RoundedItem { RoundedItem {
visible: battery.capacity visible: battery.capacity
Label {
text: qsTr("Health")
color: FishUI.Theme.disabledTextColor
bottomPadding: FishUI.Units.largeSpacing
}
RowLayout { RowLayout {
spacing: FishUI.Units.largeSpacing * 4 spacing: FishUI.Units.largeSpacing * 4
@ -279,6 +288,10 @@ ItemPage {
} }
} }
Item {
height: FishUI.Units.largeSpacing
}
RoundedItem { RoundedItem {
RowLayout { RowLayout {
Label { Label {

@ -57,16 +57,20 @@ ItemPage {
ColumnLayout { ColumnLayout {
id: layout id: layout
anchors.fill: parent anchors.fill: parent
spacing: FishUI.Units.largeSpacing * 2 spacing: FishUI.Units.smallSpacing
Label {
text: qsTr("Brightness")
color: FishUI.Theme.disabledTextColor
leftPadding: FishUI.Units.largeSpacing
}
RoundedItem { RoundedItem {
Layout.fillWidth: true Layout.fillWidth: true
visible: brightness.enabled visible: brightness.enabled
Label { Item {
text: qsTr("Brightness") height: FishUI.Units.smallSpacing / 2
color: FishUI.Theme.disabledTextColor
bottomPadding: FishUI.Units.largeSpacing
} }
RowLayout { RowLayout {
@ -100,19 +104,23 @@ ItemPage {
} }
Item { Item {
height: FishUI.Units.smallSpacing height: FishUI.Units.smallSpacing / 2
} }
} }
RoundedItem { Item {
height: FishUI.Units.largeSpacing
}
Label {
text: qsTr("Screen")
color: FishUI.Theme.disabledTextColor
leftPadding: FishUI.Units.largeSpacing
visible: _screenView.count > 0 visible: _screenView.count > 0
}
Label { RoundedItem {
text: qsTr("Screen") visible: _screenView.count > 0
color: FishUI.Theme.disabledTextColor
bottomPadding: FishUI.Units.smallSpacing
visible: _screenView.count > 0
}
ListView { ListView {
id: _screenView id: _screenView
@ -269,13 +277,17 @@ ItemPage {
} }
} }
RoundedItem { Item {
Label { height: FishUI.Units.largeSpacing
text: qsTr("Scale") }
color: FishUI.Theme.disabledTextColor
bottomPadding: FishUI.Units.smallSpacing Label {
} text: qsTr("Scale")
color: FishUI.Theme.disabledTextColor
leftPadding: FishUI.Units.largeSpacing
}
RoundedItem {
TabBar { TabBar {
id: dockSizeTabbar id: dockSizeTabbar
Layout.fillWidth: true Layout.fillWidth: true

@ -38,16 +38,16 @@ ItemPage {
ColumnLayout { ColumnLayout {
id: layout id: layout
anchors.fill: parent anchors.fill: parent
spacing: FishUI.Units.largeSpacing * 2 spacing: FishUI.Units.smallSpacing
Label {
text: qsTr("Position on screen")
color: FishUI.Theme.disabledTextColor
leftPadding: FishUI.Units.largeSpacing
}
RoundedItem { RoundedItem {
// Dock // Dock
Label {
text: qsTr("Position on screen")
color: FishUI.Theme.disabledTextColor
bottomPadding: FishUI.Units.smallSpacing
}
RowLayout { RowLayout {
spacing: FishUI.Units.largeSpacing * 2 spacing: FishUI.Units.largeSpacing * 2
@ -74,14 +74,18 @@ ItemPage {
} }
} }
Item {
height: FishUI.Units.largeSpacing
}
Label {
text: qsTr("Size")
color: FishUI.Theme.disabledTextColor
leftPadding: FishUI.Units.largeSpacing
}
// Dock Size // Dock Size
RoundedItem { RoundedItem {
Label {
text: qsTr("Size")
color: FishUI.Theme.disabledTextColor
bottomPadding: FishUI.Units.smallSpacing
}
TabBar { TabBar {
id: dockSizeTabbar id: dockSizeTabbar
Layout.fillWidth: true Layout.fillWidth: true
@ -141,14 +145,18 @@ ItemPage {
} }
} }
Item {
height: FishUI.Units.largeSpacing
}
Label {
text: qsTr("Display mode")
color: FishUI.Theme.disabledTextColor
leftPadding: FishUI.Units.largeSpacing
}
// Visibility // Visibility
RoundedItem { RoundedItem {
Label {
text: qsTr("Visibility")
color: FishUI.Theme.disabledTextColor
bottomPadding: FishUI.Units.smallSpacing
}
TabBar { TabBar {
Layout.fillWidth: true Layout.fillWidth: true
currentIndex: appearance.dockVisibility currentIndex: appearance.dockVisibility

@ -32,6 +32,6 @@ Item {
height: 1 height: 1
width: control.width width: control.width
color: FishUI.Theme.disabledTextColor color: FishUI.Theme.disabledTextColor
opacity: FishUI.Theme.darkMode ? 0.3 : 0.15 opacity: FishUI.Theme.darkMode ? 0.3 : 0.1
} }
} }

@ -35,11 +35,13 @@ Page {
height: rootWindow.header.height height: rootWindow.header.height
Label { Label {
anchors.fill: parent anchors.horizontalCenter: parent.horizontalCenter
leftPadding: FishUI.Units.largeSpacing * 2
// anchors.fill: parent
// leftPadding: FishUI.Units.largeSpacing * 2
topPadding: FishUI.Units.largeSpacing topPadding: FishUI.Units.largeSpacing
bottomPadding: 0 bottomPadding: 0
font.pointSize: 15 font.pointSize: 12
text: page.headerTitle text: page.headerTitle
} }
} }

@ -37,8 +37,8 @@ Rectangle {
ColumnLayout { ColumnLayout {
id: _mainLayout id: _mainLayout
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: FishUI.Units.largeSpacing * 1.5 anchors.leftMargin: FishUI.Units.largeSpacing
anchors.rightMargin: FishUI.Units.largeSpacing * 1.5 anchors.rightMargin: FishUI.Units.largeSpacing
anchors.topMargin: FishUI.Units.largeSpacing anchors.topMargin: FishUI.Units.largeSpacing
anchors.bottomMargin: FishUI.Units.largeSpacing anchors.bottomMargin: FishUI.Units.largeSpacing
} }

@ -136,6 +136,15 @@ Item {
category: qsTr("System") category: qsTr("System")
} }
// ListElement {
// title: qsTr("Application")
// name: "application"
// page: "qrc:/qml/Application/Main.qml"
// iconSource: "accounts.svg"
// iconColor: "#DA7C43"
// category: qsTr("System")
// }
ListElement { ListElement {
title: qsTr("Language") title: qsTr("Language")
name: "language" name: "language"

@ -107,5 +107,6 @@
<file>images/sidebar/dark/fonts.svg</file> <file>images/sidebar/dark/fonts.svg</file>
<file>qml/Hotspot/Main.qml</file> <file>qml/Hotspot/Main.qml</file>
<file>images/sidebar/dark/hotspot.svg</file> <file>images/sidebar/dark/hotspot.svg</file>
<file>qml/Application/Main.qml</file>
</qresource> </qresource>
</RCC> </RCC>

Loading…
Cancel
Save