summaryrefslogtreecommitdiff
path: root/config/Launcher.qml
blob: efb5dc82d1050108bb4ebf7a0e057e21033ce9fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
pragma Singleton

import Quickshell
import QtQuick
import qs.popups.launcher.components

Singleton {
    id: root

    readonly property int defaultWidth: 500

    readonly property int widgetWidth: 700
    readonly property int widgetHeight: 200

    readonly property int innerMargin: 5

    readonly property int borderRadius: Style.rounding.large
    readonly property int borderWidth: 1

    readonly property int widgetRadius: Style.rounding.small
    readonly property int widgetFontSize: Style.font.size.large

    readonly property double bgTransparency: 0.4
    readonly property double widgetBgTransparency: 0.3
    readonly property double widgetTitleBgTransparency: 0.2 // as it's on top of it

    readonly property bool showWidgetTitle: false

    readonly property int topMargin: 400

    readonly property int predictiveCompletionRadius: 6

    readonly property int maxPreviewLen: 20

    readonly property list<Component> widgets: [
    	// recommanded order:
		// 1. components with .startswith
		// 2. utils
		// 3. app launcher
        Component {
            Emoji {}
        },
        Component {
            Clip {}
        },
        Component {
            Spell {}
        },
        Component {
            Calc {}
        },
        Component {
            DateTime {}
        },
        Component {
            Unit {}
        },
        Component {
			Currency {}
        },
        Component {
            App {}
        },
        Component {
        	DuckDuckGo {}
        }
    ]
}