Redesign the background page

pull/11/head
cutefishd 5 years ago
parent 49bbae1c20
commit 8174817502

@ -14,13 +14,22 @@ static QVariantList getBackgroundPaths()
Background::Background(QObject *parent)
: QObject(parent)
, m_interface("org.cutefish.Settings",
"/Theme",
"org.cutefish.Theme",
QDBusConnection::sessionBus(), this)
{
QDBusInterface iface("org.cutefish.Settings",
"/Theme",
"org.cutefish.Theme",
QDBusConnection::sessionBus(), this);
if (iface.isValid()) {
m_currentPath = iface.property("wallpaper").toString();
if (m_interface.isValid()) {
m_currentPath = m_interface.property("wallpaper").toString();
QDBusConnection::sessionBus().connect(m_interface.service(),
m_interface.path(),
m_interface.interface(),
"backgroundTypeChanged", this, SIGNAL(backgroundTypeChanged()));
QDBusConnection::sessionBus().connect(m_interface.service(),
m_interface.path(),
m_interface.interface(),
"backgroundColorChanged", this, SIGNAL(backgroundColorChanged()));
}
}
@ -41,13 +50,29 @@ void Background::setBackground(QString path)
if (m_currentPath != path && !path.isEmpty()) {
m_currentPath = path;
QDBusInterface iface("org.cutefish.Settings",
"/Theme",
"org.cutefish.Theme",
QDBusConnection::sessionBus(), this);
if (iface.isValid()) {
iface.call("setWallpaper", path);
if (m_interface.isValid()) {
m_interface.call("setWallpaper", path);
emit backgroundChanged();
}
}
}
int Background::backgroundType()
{
return m_interface.property("backgroundType").toInt();
}
void Background::setBackgroundType(int type)
{
m_interface.call("setBackgroundType", QVariant::fromValue(type));
}
QString Background::backgroundColor()
{
return m_interface.property("backgroundColor").toString();
}
void Background::setBackgroundColor(const QString &color)
{
m_interface.call("setBackgroundColor", QVariant::fromValue(color));
}

@ -15,6 +15,9 @@ class Background : public QObject
Q_PROPERTY(QString currentBackgroundPath READ currentBackgroundPath WRITE setBackground NOTIFY backgroundChanged)
Q_PROPERTY(QVariantList backgrounds READ backgrounds NOTIFY stub)
Q_PROPERTY(int backgroundType READ backgroundType WRITE setBackgroundType NOTIFY backgroundTypeChanged)
Q_PROPERTY(QString backgroundColor READ backgroundColor WRITE setBackgroundColor NOTIFY backgroundColorChanged)
public:
explicit Background(QObject *parent = nullptr);
@ -22,11 +25,20 @@ public:
QString currentBackgroundPath();
Q_INVOKABLE void setBackground(QString newBackgroundPath);
int backgroundType();
void setBackgroundType(int type);
QString backgroundColor();
void setBackgroundColor(const QString &color);
signals:
void backgroundChanged();
void backgroundColorChanged();
void backgroundTypeChanged();
void stub();
private:
QDBusInterface m_interface;
QString m_currentPath;
};

@ -1,104 +0,0 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import QtGraphicalEffects 1.0
import Cutefish.Settings 1.0
import MeuiKit 1.0 as Meui
ItemPage {
headerTitle: qsTr("Wallpaper")
Background {
id: background
}
GridView {
anchors.fill: parent
leftMargin: Meui.Units.smallSpacing
cellWidth: 320
cellHeight: 180
clip: true
model: background.backgrounds
currentIndex: -1
ScrollBar.vertical: ScrollBar {
bottomPadding: Meui.Theme.smallRadius
}
delegate: Item {
id: item
// required property variant modelData
property bool isSelected: modelData === background.currentBackgroundPath
width: GridView.view.cellWidth
height: GridView.view.cellHeight
Rectangle {
anchors.fill: parent
anchors.leftMargin: Meui.Units.largeSpacing
anchors.rightMargin: Meui.Units.largeSpacing
anchors.topMargin: Meui.Units.smallSpacing
anchors.bottomMargin: Meui.Units.smallSpacing
color: "transparent"
radius: Meui.Theme.bigRadius + Meui.Units.smallSpacing / 2
border.color: Meui.Theme.highlightColor
border.width: image.status == Image.Ready & isSelected ? 3 : 0
Image {
id: image
anchors.fill: parent
anchors.margins: Meui.Units.smallSpacing
source: "file://" + modelData
sourceSize: Qt.size(width, height)
fillMode: Image.PreserveAspectCrop
asynchronous: true
mipmap: true
cache: true
opacity: 1.0
Behavior on opacity {
NumberAnimation {
duration: 100
easing.type: Easing.InOutCubic
}
}
layer.enabled: true
layer.effect: OpacityMask {
maskSource: Item {
width: image.width
height: image.height
Rectangle {
anchors.fill: parent
radius: Meui.Theme.bigRadius
}
}
}
}
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton
hoverEnabled: true
onClicked: {
background.setBackground(modelData)
}
onEntered: function() {
image.opacity = 0.7
}
onExited: function() {
image.opacity = 1.0
}
}
}
}
}
}

@ -64,9 +64,9 @@ Item {
}
ListElement {
title: qsTr("Wallpaper")
name: "wallpaper"
page: "qrc:/qml/BackgroundPage.qml"
title: qsTr("Background")
name: "background"
page: "qrc:/qml/Wallpaper/BackgroundPage.qml"
iconSource: "qrc:/images/sidebar/wallpaper.svg"
}

@ -0,0 +1,211 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import QtGraphicalEffects 1.0
import Cutefish.Settings 1.0
import MeuiKit 1.0 as Meui
import "../"
ItemPage {
headerTitle: qsTr("Background")
Background {
id: background
}
Scrollable {
anchors.fill: parent
contentHeight: layout.implicitHeight
ColumnLayout {
id: layout
anchors.fill: parent
anchors.topMargin: Meui.Units.smallSpacing
spacing: Meui.Units.largeSpacing
DesktopPreview {
Layout.alignment: Qt.AlignHCenter
width: 500
height: 300
}
RowLayout {
spacing: Meui.Units.largeSpacing * 2
Label {
text: qsTr("Background type")
}
TabBar {
Layout.fillWidth: true
onCurrentIndexChanged: {
background.backgroundType = currentIndex
}
Component.onCompleted: {
currentIndex = background.backgroundType
}
TabButton {
text: qsTr("Picture")
}
TabButton {
text: qsTr("Color")
}
}
}
Loader {
Layout.fillWidth: true
height: item.height
sourceComponent: background.backgroundType === 0 ? imageView : colorView
}
}
}
Component {
id: imageView
ListView {
id: _view
Layout.fillWidth: true
spacing: Meui.Units.smallSpacing
orientation: Qt.Horizontal
height: 150
clip: true
model: background.backgrounds
currentIndex: -1
delegate: Item {
id: item
property bool isSelected: modelData === background.currentBackgroundPath
width: 200
height: _view.height
Rectangle {
anchors.fill: parent
color: "transparent"
radius: Meui.Theme.bigRadius + Meui.Units.smallSpacing / 2
border.color: Meui.Theme.highlightColor
border.width: image.status == Image.Ready & isSelected ? 3 : 0
Image {
id: image
anchors.fill: parent
anchors.margins: Meui.Units.smallSpacing
source: "file://" + modelData
sourceSize: Qt.size(width, height)
fillMode: Image.PreserveAspectCrop
asynchronous: true
mipmap: true
cache: true
opacity: 1.0
Behavior on opacity {
NumberAnimation {
duration: 100
easing.type: Easing.InOutCubic
}
}
layer.enabled: true
layer.effect: OpacityMask {
maskSource: Item {
width: image.width
height: image.height
Rectangle {
anchors.fill: parent
radius: Meui.Theme.bigRadius
}
}
}
}
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton
hoverEnabled: true
onClicked: {
background.setBackground(modelData)
}
onEntered: function() {
image.opacity = 0.7
}
onExited: function() {
image.opacity = 1.0
}
}
}
}
}
}
Component {
id: colorView
GridView {
id: _colorView
Layout.fillWidth: true
height: _colorView.count * cellHeight
cellWidth: 50
cellHeight: 50
interactive: false
model: ListModel {}
property var itemSize: 32
Component.onCompleted: {
model.append({"bgColor": "#2B8ADA"})
model.append({"bgColor": "#4DA4ED"})
model.append({"bgColor": "#B7E786"})
model.append({"bgColor": "#F2BB73"})
model.append({"bgColor": "#EE72EB"})
model.append({"bgColor": "#F0905A"})
model.append({"bgColor": "#595959"})
}
delegate: Rectangle {
property bool checked: Qt.colorEqual(background.backgroundColor, bgColor)
property color currentColor: bgColor
width: _colorView.itemSize + Meui.Units.largeSpacing
height: width
color: "transparent"
radius: width / 2
border.color: _mouseArea.pressed ? Qt.rgba(currentColor.r,
currentColor.g,
currentColor.b, 0.6)
: Qt.rgba(currentColor.r,
currentColor.g,
currentColor.b, 0.4)
border.width: checked ? 3 : _mouseArea.containsMouse ? 2 : 0
MouseArea {
id: _mouseArea
anchors.fill: parent
hoverEnabled: true
onClicked: background.backgroundColor = bgColor
}
Rectangle {
width: 32
height: width
anchors.centerIn: parent
color: currentColor
radius: width / 2
}
}
}
}
}

@ -0,0 +1,101 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import MeuiKit 1.0 as Meui
import QtGraphicalEffects 1.0
Item {
id: control
Component {
id: wallpaperItem
Image {
id: image
source: "file://" + background.currentBackgroundPath
}
}
Component {
id: colorItem
Rectangle {
color: background.backgroundColor
}
}
Loader {
id: bgLoader
anchors.fill: parent
sourceComponent: {
if (background.backgroundType === 0)
return wallpaperItem
return colorItem
}
}
Rectangle {
id: desktopItem
anchors.left: parent.left
anchors.top: parent.top
anchors.leftMargin: 10
anchors.topMargin: 10
width: 30
height: width
radius: height * 0.2
opacity: 0.5
color: Meui.Theme.backgroundColor
}
Rectangle {
id: desktopItem2
anchors.left: parent.left
anchors.top: desktopItem.bottom
anchors.leftMargin: 10
anchors.topMargin: 10
width: 30
height: width
radius: height * 0.2
opacity: 0.5
color: Meui.Theme.backgroundColor
}
Rectangle {
id: dockArea
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.leftMargin: 8
anchors.rightMargin: 8
anchors.bottomMargin: 8
height: 38
radius: height * 0.3
color: Meui.Theme.backgroundColor
opacity: 0.7
}
layer.enabled: true
layer.effect: OpacityMask {
maskSource: Item {
width: control.width
height: control.height
Rectangle {
anchors.fill: parent
radius: Meui.Theme.bigRadius
}
}
}
}

@ -16,7 +16,6 @@
<file>qml/BatteryItem.qml</file>
<file>images/sensors-voltage-symbolic.svg</file>
<file>qml/StandardItem.qml</file>
<file>qml/BackgroundPage.qml</file>
<file>images/dark_mode.svg</file>
<file>images/light_mode.svg</file>
<file>images/dock_bottom.svg</file>
@ -74,5 +73,7 @@
<file>images/light/up.svg</file>
<file>images/dark/down.svg</file>
<file>images/dark/up.svg</file>
<file>qml/Wallpaper/BackgroundPage.qml</file>
<file>qml/Wallpaper/DesktopPreview.qml</file>
</qresource>
</RCC>

@ -32,31 +32,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<source>Currently logged in as</source>
<translation type="vanished">Currently logged in as</translation>
</message>
<message>
<source>Hide additional settings</source>
<translation type="vanished">Hide additional settings</translation>
</message>
<message>
<source>Show additional settings</source>
<translation type="vanished">Show additional settings</translation>
</message>
<message>
<source>Additional settings</source>
<translation type="vanished">Additional settings</translation>
</message>
<message>
<source>Automatic login</source>
<translation type="vanished">Automatic login</translation>
</message>
<message>
<source>Other Accounts</source>
<translation type="vanished">Other Accounts</translation>
</message>
<message>
<location filename="../src/qml/AccountsPage.qml" line="65"/>
<location filename="../src/qml/AccountsPage.qml" line="64"/>
<source>Add user</source>
<translation>Add user</translation>
</message>
@ -115,67 +91,67 @@
<translation>Appearance</translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="53"/>
<location filename="../src/qml/AppearancePage.qml" line="52"/>
<source>Theme</source>
<translation>Theme</translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="64"/>
<location filename="../src/qml/AppearancePage.qml" line="63"/>
<source>Light</source>
<translation>Light</translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="71"/>
<location filename="../src/qml/AppearancePage.qml" line="70"/>
<source>Dark</source>
<translation>Dark</translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="86"/>
<location filename="../src/qml/AppearancePage.qml" line="85"/>
<source>Dim the wallpaper in dark theme</source>
<translation>Dim the wallpaper in dark theme</translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="105"/>
<location filename="../src/qml/AppearancePage.qml" line="104"/>
<source>Accent color</source>
<translation>Accent color</translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="184"/>
<location filename="../src/qml/AppearancePage.qml" line="183"/>
<source>Font</source>
<translation>Font</translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="196"/>
<location filename="../src/qml/AppearancePage.qml" line="195"/>
<source>General Font</source>
<translation>General Font</translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="209"/>
<location filename="../src/qml/AppearancePage.qml" line="208"/>
<source>Fixed Font</source>
<translation>Fixed Font</translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="222"/>
<location filename="../src/qml/AppearancePage.qml" line="221"/>
<source>Font Size</source>
<translation>Font Size</translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="230"/>
<location filename="../src/qml/AppearancePage.qml" line="229"/>
<source>Small</source>
<translation>Small</translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="234"/>
<location filename="../src/qml/AppearancePage.qml" line="233"/>
<source>Medium</source>
<translation>Medium</translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="238"/>
<location filename="../src/qml/AppearancePage.qml" line="237"/>
<source>Large</source>
<translation>Large</translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="242"/>
<location filename="../src/qml/AppearancePage.qml" line="241"/>
<source>Huge</source>
<translation>Huge</translation>
</message>
@ -183,9 +159,24 @@
<context>
<name>BackgroundPage</name>
<message>
<location filename="../src/qml/BackgroundPage.qml" line="9"/>
<source>Wallpaper</source>
<translation>Wallpaper</translation>
<location filename="../src/qml/Wallpaper/BackgroundPage.qml" line="11"/>
<source>Background</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Wallpaper/BackgroundPage.qml" line="37"/>
<source>Background type</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Wallpaper/BackgroundPage.qml" line="51"/>
<source>Picture</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Wallpaper/BackgroundPage.qml" line="55"/>
<source>Color</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
@ -226,35 +217,27 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/BatteryPage.qml" line="107"/>
<location filename="../src/qml/BatteryPage.qml" line="106"/>
<source>History</source>
<translation>History</translation>
</message>
<message>
<location filename="../src/qml/BatteryPage.qml" line="135"/>
<location filename="../src/qml/BatteryPage.qml" line="134"/>
<source>W</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Yesterday</source>
<translation type="vanished">Yesterday</translation>
</message>
<message>
<source>Today</source>
<translation type="vanished">Today</translation>
</message>
<message>
<location filename="../src/qml/BatteryPage.qml" line="156"/>
<location filename="../src/qml/BatteryPage.qml" line="155"/>
<source>Last Charged to</source>
<translation>Last Charged to</translation>
</message>
<message>
<location filename="../src/qml/BatteryPage.qml" line="162"/>
<location filename="../src/qml/BatteryPage.qml" line="161"/>
<source>Maximum Capacity</source>
<translation>Maximum Capacity</translation>
</message>
<message>
<location filename="../src/qml/BatteryPage.qml" line="170"/>
<location filename="../src/qml/BatteryPage.qml" line="169"/>
<source>No battery found</source>
<translation>No battery found</translation>
</message>
@ -379,12 +362,12 @@
<translation>Network</translation>
</message>
<message>
<location filename="../src/qml/NetworkPage.qml" line="45"/>
<location filename="../src/qml/NetworkPage.qml" line="40"/>
<source>Wired</source>
<translation>Wired</translation>
</message>
<message>
<location filename="../src/qml/NetworkPage.qml" line="85"/>
<location filename="../src/qml/NetworkPage.qml" line="80"/>
<source>Wi-Fi</source>
<translation>Wi-Fi</translation>
</message>
@ -411,11 +394,6 @@
<source>Dock</source>
<translation>Dock</translation>
</message>
<message>
<location filename="../src/qml/SideBar.qml" line="67"/>
<source>Wallpaper</source>
<translation>Wallpaper</translation>
</message>
<message>
<location filename="../src/qml/SideBar.qml" line="32"/>
<source>User</source>
@ -426,6 +404,11 @@
<source>Bluetooth</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/SideBar.qml" line="67"/>
<source>Background</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/SideBar.qml" line="81"/>
<source>Language</source>
@ -445,22 +428,27 @@
<context>
<name>UserDelegateItem</name>
<message>
<location filename="../src/qml/UserPage/UserDelegateItem.qml" line="116"/>
<location filename="../src/qml/UserPage/UserDelegateItem.qml" line="87"/>
<source>Currently logged</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/UserPage/UserDelegateItem.qml" line="122"/>
<source>Avatar</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/UserPage/UserDelegateItem.qml" line="121"/>
<location filename="../src/qml/UserPage/UserDelegateItem.qml" line="127"/>
<source>Choose</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/UserPage/UserDelegateItem.qml" line="127"/>
<location filename="../src/qml/UserPage/UserDelegateItem.qml" line="133"/>
<source>Automatic login</source>
<translation type="unfinished">Automatic login</translation>
</message>
<message>
<location filename="../src/qml/UserPage/UserDelegateItem.qml" line="147"/>
<location filename="../src/qml/UserPage/UserDelegateItem.qml" line="153"/>
<source>Delete this user</source>
<translation type="unfinished"></translation>
</message>

@ -32,31 +32,7 @@
<translation></translation>
</message>
<message>
<source>Currently logged in as</source>
<translation type="vanished"></translation>
</message>
<message>
<source>Hide additional settings</source>
<translation type="vanished"></translation>
</message>
<message>
<source>Show additional settings</source>
<translation type="vanished"></translation>
</message>
<message>
<source>Additional settings</source>
<translation type="vanished"></translation>
</message>
<message>
<source>Automatic login</source>
<translation type="vanished"></translation>
</message>
<message>
<source>Other Accounts</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../src/qml/AccountsPage.qml" line="65"/>
<location filename="../src/qml/AccountsPage.qml" line="64"/>
<source>Add user</source>
<translation></translation>
</message>
@ -115,67 +91,67 @@
<translation></translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="53"/>
<location filename="../src/qml/AppearancePage.qml" line="52"/>
<source>Theme</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="64"/>
<location filename="../src/qml/AppearancePage.qml" line="63"/>
<source>Light</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="71"/>
<location filename="../src/qml/AppearancePage.qml" line="70"/>
<source>Dark</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="86"/>
<location filename="../src/qml/AppearancePage.qml" line="85"/>
<source>Dim the wallpaper in dark theme</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="105"/>
<location filename="../src/qml/AppearancePage.qml" line="104"/>
<source>Accent color</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="184"/>
<location filename="../src/qml/AppearancePage.qml" line="183"/>
<source>Font</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="196"/>
<location filename="../src/qml/AppearancePage.qml" line="195"/>
<source>General Font</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="209"/>
<location filename="../src/qml/AppearancePage.qml" line="208"/>
<source>Fixed Font</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="222"/>
<location filename="../src/qml/AppearancePage.qml" line="221"/>
<source>Font Size</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="230"/>
<location filename="../src/qml/AppearancePage.qml" line="229"/>
<source>Small</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="234"/>
<location filename="../src/qml/AppearancePage.qml" line="233"/>
<source>Medium</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="238"/>
<location filename="../src/qml/AppearancePage.qml" line="237"/>
<source>Large</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/AppearancePage.qml" line="242"/>
<location filename="../src/qml/AppearancePage.qml" line="241"/>
<source>Huge</source>
<translation></translation>
</message>
@ -183,9 +159,24 @@
<context>
<name>BackgroundPage</name>
<message>
<location filename="../src/qml/BackgroundPage.qml" line="9"/>
<source>Wallpaper</source>
<translation></translation>
<location filename="../src/qml/Wallpaper/BackgroundPage.qml" line="11"/>
<source>Background</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/Wallpaper/BackgroundPage.qml" line="37"/>
<source>Background type</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/Wallpaper/BackgroundPage.qml" line="51"/>
<source>Picture</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/Wallpaper/BackgroundPage.qml" line="55"/>
<source>Color</source>
<translation></translation>
</message>
</context>
<context>
@ -226,27 +217,27 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/BatteryPage.qml" line="107"/>
<location filename="../src/qml/BatteryPage.qml" line="106"/>
<source>History</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/BatteryPage.qml" line="135"/>
<location filename="../src/qml/BatteryPage.qml" line="134"/>
<source>W</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/BatteryPage.qml" line="156"/>
<location filename="../src/qml/BatteryPage.qml" line="155"/>
<source>Last Charged to</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/BatteryPage.qml" line="162"/>
<location filename="../src/qml/BatteryPage.qml" line="161"/>
<source>Maximum Capacity</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/BatteryPage.qml" line="170"/>
<location filename="../src/qml/BatteryPage.qml" line="169"/>
<source>No battery found</source>
<translation></translation>
</message>
@ -371,12 +362,12 @@
<translation></translation>
</message>
<message>
<location filename="../src/qml/NetworkPage.qml" line="45"/>
<location filename="../src/qml/NetworkPage.qml" line="40"/>
<source>Wired</source>
<translation>线</translation>
</message>
<message>
<location filename="../src/qml/NetworkPage.qml" line="85"/>
<location filename="../src/qml/NetworkPage.qml" line="80"/>
<source>Wi-Fi</source>
<translation>线</translation>
</message>
@ -403,11 +394,6 @@
<source>Dock</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/SideBar.qml" line="67"/>
<source>Wallpaper</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/SideBar.qml" line="32"/>
<source>User</source>
@ -418,6 +404,11 @@
<source>Bluetooth</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/SideBar.qml" line="67"/>
<source>Background</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/SideBar.qml" line="81"/>
<source>Language</source>

Loading…
Cancel
Save