diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-29 08:48:57 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-29 08:48:57 +0800 |
commit | faf97cc5a774090f73f85d8a10e6ca3f1491e2b2 (patch) | |
tree | 9234893ff358e3510c15cab31ac8e2c49ef50ff4 | |
parent | be4b47f469b12107bc0216e52e38cd92956713cd (diff) |
Body text supports dark mode
-rw-r--r-- | Course/Detail/Classic.ui.qml | 1 | ||||
-rw-r--r-- | Course/Detail/Classic/Content/Main.ui.qml | 1 | ||||
-rw-r--r-- | Home/Default.ui.qml | 2 | ||||
-rw-r--r-- | Instructor/EditProfile.ui.qml | 6 | ||||
-rw-r--r-- | Label/Body.ui.qml | 3 | ||||
-rw-r--r-- | imports/Eduport/Eduport.qml | 1 |
6 files changed, 3 insertions, 11 deletions
diff --git a/Course/Detail/Classic.ui.qml b/Course/Detail/Classic.ui.qml index 7811c64..a60e331 100644 --- a/Course/Detail/Classic.ui.qml +++ b/Course/Detail/Classic.ui.qml @@ -68,7 +68,6 @@ Flickable { Lbl.Body { id: introTitleParagraph text: qsTr("Satisfied conveying a dependent contented he gentleman agreeable do be. Warrant private blushes removed an in equally totally if. Delivered dejection necessary objection do Mr prevailed. Mr feeling does chiefly cordial in do.") - color: "#747579" Layout.fillWidth: true } } diff --git a/Course/Detail/Classic/Content/Main.ui.qml b/Course/Detail/Classic/Content/Main.ui.qml index db29cb2..b00fe1d 100644 --- a/Course/Detail/Classic/Content/Main.ui.qml +++ b/Course/Detail/Classic/Content/Main.ui.qml @@ -91,7 +91,6 @@ ColumnLayout { Lbl.Body { id: courseDescription text: qsTr("Welcome to the Digital Marketing Ultimate Course Bundle - 12 Courses in 1 (Over 36 hours of content)") - color: "#747579" Layout.fillWidth: true } } diff --git a/Home/Default.ui.qml b/Home/Default.ui.qml index 5421b99..95e0a1f 100644 --- a/Home/Default.ui.qml +++ b/Home/Default.ui.qml @@ -55,7 +55,6 @@ Flickable { Lbl.Body { text: bannerContentText - color: "#747579" horizontalAlignment: Text.AlignHCenter Layout.fillWidth: true font.pointSize: Eduport.leadFontSize @@ -202,7 +201,6 @@ Flickable { Lbl.Body { text: qsTr("Choose from hundreds of courses from specialist organizations") - color: "#747579" horizontalAlignment: Text.AlignHCenter Layout.fillWidth: true } diff --git a/Instructor/EditProfile.ui.qml b/Instructor/EditProfile.ui.qml index 07e478b..4115e70 100644 --- a/Instructor/EditProfile.ui.qml +++ b/Instructor/EditProfile.ui.qml @@ -78,7 +78,6 @@ Flickable { Layout.fillWidth: true Layout.bottomMargin: 8 text: qsTr("Profile picture") - color: "#747579" } RowLayout { @@ -135,7 +134,6 @@ Flickable { Layout.fillWidth: true Layout.bottomMargin: 8 text: qsTr("Full name") - color: "#747579" } Rectangle { @@ -192,7 +190,6 @@ Flickable { Layout.fillWidth: true Layout.bottomMargin: 8 text: qsTr("Username") - color: "#747579" } Rectangle { @@ -252,7 +249,6 @@ Flickable { Layout.fillWidth: true Layout.bottomMargin: 8 text: qsTr("Email id") - color: "#747579" } Rectangle { @@ -289,7 +285,6 @@ Flickable { Layout.fillWidth: true Layout.bottomMargin: 8 text: qsTr("Phone number") - color: "#747579" } Rectangle { @@ -326,7 +321,6 @@ Flickable { Layout.fillWidth: true Layout.bottomMargin: 8 text: qsTr("Location") - color: "#747579" } Rectangle { diff --git a/Label/Body.ui.qml b/Label/Body.ui.qml index 3ee93b9..6408659 100644 --- a/Label/Body.ui.qml +++ b/Label/Body.ui.qml @@ -3,10 +3,11 @@ import QtQuick.Controls 2.15 import Eduport 1.4 Label { - wrapMode: Label.Wrap font { family: Eduport.bodyFont.family weight: Eduport.bodyFont.weight pointSize: Eduport.bodyFont.pointSize } + color: Eduport.bsBodyColor + wrapMode: Label.Wrap } diff --git a/imports/Eduport/Eduport.qml b/imports/Eduport/Eduport.qml index 94f84f9..240319a 100644 --- a/imports/Eduport/Eduport.qml +++ b/imports/Eduport/Eduport.qml @@ -46,6 +46,7 @@ QtObject { readonly property real bsBadgeFontSize: 13.6 + property color bsBodyColor: mode ? "#a1a1a8" : "#747579" property color bsBodyBg: mode ? "#222529" : "#ffffff" property real bsBorderRadius: 5.2 |