first run experience: welcome app

This commit is contained in:
end-4
2025-06-15 16:22:47 +02:00
parent eb8fc41c01
commit 41c5c2a99b
8 changed files with 318 additions and 6 deletions
@@ -148,6 +148,7 @@ Singleton {
rounding: QtObject {
property int unsharpen: 2
property int unsharpenmore: 6
property int verysmall: 8
property int small: 12
property int normal: 17
@@ -23,8 +23,8 @@ Button {
property var altAction // When right clicking
property var middleClickAction // When middle clicking
property bool bounce: true
property real baseWidth: contentItem.implicitWidth + padding * 2
property real baseHeight: contentItem.implicitHeight + padding * 2
property real baseWidth: contentItem.implicitWidth + horizontalPadding * 2
property real baseHeight: contentItem.implicitHeight + verticalPadding * 2
property real clickedWidth: baseWidth + 20
property real clickedHeight: baseHeight
property var parentGroup: root.parent
@@ -19,6 +19,7 @@ ProgressBar {
property color highlightColor: Appearance?.colors.colPrimary ?? "#685496"
property color trackColor: Appearance?.m3colors.m3secondaryContainer ?? "#F1D3F9"
property bool sperm: false // If true, the progress bar will have a wavy fill effect
property bool animateSperm: true
property real spermAmplitudeMultiplier: sperm ? 0.5 : 0
property real spermFrequency: 6
property real spermFps: 60
@@ -82,7 +83,7 @@ ProgressBar {
}
Timer {
interval: 1000 / root.spermFps
running: root.sperm
running: root.animateSperm
repeat: root.sperm
onTriggered: wavyFill.requestPaint()
}
@@ -9,7 +9,7 @@ import Qt5Compat.GraphicalEffects
*/
Switch {
id: root
property real scale: 1
property real scale: 0.6 // Default in m3 spec is huge af
implicitHeight: 32 * root.scale
implicitWidth: 52 * root.scale
property color activeColor: Appearance?.colors.colPrimary ?? "#685496"