From 709fa0b56b8c3a0934eecf8ef42d114481eaa713 Mon Sep 17 00:00:00 2001 From: kateleet Date: Thu, 25 Nov 2021 16:16:22 +0800 Subject: [PATCH] Add default apps layout --- src/images/sidebar/dark/defaultapps.svg | 13 +++++++++ src/qml/DefaultApp/Main.qml | 39 +++++++++++++++++++++++++ src/resources.qrc | 1 + translations/en_US.ts | 20 +++++++++++++ translations/zh_CN.ts | 20 +++++++++++++ 5 files changed, 93 insertions(+) create mode 100644 src/images/sidebar/dark/defaultapps.svg diff --git a/src/images/sidebar/dark/defaultapps.svg b/src/images/sidebar/dark/defaultapps.svg new file mode 100644 index 0000000..1237338 --- /dev/null +++ b/src/images/sidebar/dark/defaultapps.svg @@ -0,0 +1,13 @@ + + + + + + image/svg+xml + + + + + + + diff --git a/src/qml/DefaultApp/Main.qml b/src/qml/DefaultApp/Main.qml index 29a575a..ed04b11 100644 --- a/src/qml/DefaultApp/Main.qml +++ b/src/qml/DefaultApp/Main.qml @@ -38,6 +38,45 @@ ItemPage { ColumnLayout { id: layout anchors.fill: parent + + 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 Client") + } + + ComboBox { + Layout.fillWidth: true + } + + Label { + text: qsTr("Terminal") + } + + ComboBox { + Layout.fillWidth: true + } + } + } } } } diff --git a/src/resources.qrc b/src/resources.qrc index ce72751..8dc9623 100644 --- a/src/resources.qrc +++ b/src/resources.qrc @@ -140,5 +140,6 @@ images/dark/audio-input-microphone-low-symbolic.svg images/dark/audio-input-microphone-medium-symbolic.svg qml/DefaultApp/Main.qml + images/sidebar/dark/defaultapps.svg diff --git a/translations/en_US.ts b/translations/en_US.ts index 3c69bfd..0eab786 100644 --- a/translations/en_US.ts +++ b/translations/en_US.ts @@ -754,6 +754,26 @@ Default Applications + + + Web Browser + + + + + File Manager + + + + + Email Client + + + + + Terminal + + PairDialog diff --git a/translations/zh_CN.ts b/translations/zh_CN.ts index 6dc8d47..d4b527f 100644 --- a/translations/zh_CN.ts +++ b/translations/zh_CN.ts @@ -754,6 +754,26 @@ Default Applications 默认应用 + + + Web Browser + 网络浏览器 + + + + File Manager + 文件管理器 + + + + Email Client + 邮件客户端 + + + + Terminal + 终端 + PairDialog