RinUI 0.0.11__py3-none-any.whl → 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- RinUI/__init__.py +4 -4
- RinUI/assets/fonts/FluentSystemIcons-Index.js +5255 -5255
- RinUI/assets/img/default_app_icon.png +0 -0
- RinUI/components/Base.qml +78 -78
- RinUI/components/BasicInput/Button.qml +146 -147
- RinUI/components/BasicInput/CheckBox.qml +98 -98
- RinUI/components/BasicInput/ComboBox.qml +159 -159
- RinUI/components/BasicInput/DropDownButton.qml +20 -20
- RinUI/components/BasicInput/Hyperlink.qml +17 -17
- RinUI/components/BasicInput/PillButton.qml +10 -10
- RinUI/components/BasicInput/RadioButton.qml +94 -94
- RinUI/components/BasicInput/RoundButton.qml +26 -26
- RinUI/components/BasicInput/Slider.qml +212 -212
- RinUI/components/BasicInput/Switch.qml +101 -101
- RinUI/components/BasicInput/ToggleButton.qml +10 -10
- RinUI/components/BasicInput/ToolButton.qml +30 -30
- RinUI/components/ContextMenu.qml +183 -183
- RinUI/components/DateAndTime/DatePicker.qml +142 -140
- RinUI/components/DateAndTime/PickerView.qml +223 -223
- RinUI/components/DateAndTime/TimePicker.qml +114 -114
- RinUI/components/DialogsAndFlyouts/Dialog.qml +106 -106
- RinUI/components/DialogsAndFlyouts/DialogButtonBox.qml +47 -47
- RinUI/components/DialogsAndFlyouts/Flyout.qml +87 -144
- RinUI/components/DialogsAndFlyouts/Popup.qml +110 -106
- RinUI/components/FocusIndicator.qml +33 -33
- RinUI/components/IconWidget.qml +52 -52
- RinUI/components/Indicator.qml +89 -89
- RinUI/components/Layout/Expander.qml +159 -159
- RinUI/components/Layout/SettingExpander.qml +66 -66
- RinUI/components/Layout/SettingItem.qml +70 -70
- RinUI/components/ListAndCollections/Clip.qml +21 -21
- RinUI/components/ListAndCollections/Frame.qml +43 -43
- RinUI/components/ListAndCollections/ListView.qml +104 -104
- RinUI/components/ListAndCollections/ListViewDelegate.qml +82 -82
- RinUI/components/ListAndCollections/SettingCard.qml +72 -72
- RinUI/components/ListAndCollections/TableView.qml +81 -81
- RinUI/components/ListAndCollections/TableViewDelegate.qml +88 -88
- RinUI/components/Media/Avatar.qml +83 -0
- RinUI/components/MenusAndToolbars/Menu.qml +150 -150
- RinUI/components/MenusAndToolbars/MenuBar.qml +42 -42
- RinUI/components/MenusAndToolbars/MenuItem.qml +131 -131
- RinUI/components/MenusAndToolbars/MenuItemGroup.qml +43 -43
- RinUI/components/MenusAndToolbars/MenuSeparator.qml +13 -13
- RinUI/components/MenusAndToolbars/TextInputMenu.qml +37 -37
- RinUI/components/MenusAndToolbars/ToolSeparator.qml +16 -16
- RinUI/components/Navigation/ErrorPage.qml +48 -48
- RinUI/components/Navigation/NavigationBar.qml +179 -179
- RinUI/components/Navigation/NavigationItem.qml +193 -193
- RinUI/components/Navigation/NavigationSubItem.qml +103 -103
- RinUI/components/Navigation/NavigationView.qml +228 -227
- RinUI/components/Navigation/Segmented.qml +17 -0
- RinUI/components/Navigation/SegmentedItem.qml +108 -0
- RinUI/components/Navigation/SelectorBar.qml +12 -57
- RinUI/components/Navigation/SelectorBarItem.qml +89 -0
- RinUI/components/ScrollBar.qml +204 -204
- RinUI/components/ScrollView.qml +12 -12
- RinUI/components/Shadow.qml +47 -47
- RinUI/components/StatusAndInfo/InfoBadge.qml +77 -77
- RinUI/components/StatusAndInfo/InfoBar.qml +256 -251
- RinUI/components/StatusAndInfo/ProgressBar.qml +126 -126
- RinUI/components/StatusAndInfo/ProgressRing.qml +149 -0
- RinUI/components/StatusAndInfo/Toast.qml +236 -236
- RinUI/components/StatusAndInfo/ToolTip.qml +93 -93
- RinUI/components/Text/SpinBox.qml +150 -133
- RinUI/components/Text/Text.qml +44 -44
- RinUI/components/Text/TextArea.qml +117 -117
- RinUI/components/Text/TextField.qml +113 -113
- RinUI/components/Text/TextInput.qml +47 -47
- RinUI/components/qmldir +80 -77
- RinUI/core/__init__.py +4 -4
- RinUI/core/config.py +129 -129
- RinUI/core/launcher.py +129 -129
- RinUI/core/theme.py +339 -339
- RinUI/core/translator.py +25 -25
- RinUI/hooks/__init__.py +3 -3
- RinUI/hooks/hook-RinUI.py +3 -3
- RinUI/qmldir +108 -97
- RinUI/themes/Appearance.qml +36 -0
- RinUI/themes/Colors.qml +36 -0
- RinUI/themes/dark.qml +145 -136
- RinUI/themes/light.qml +145 -136
- RinUI/themes/qmldir +9 -6
- RinUI/themes/theme.qml +151 -149
- RinUI/themes/utils.qml +37 -37
- RinUI/utils/Animation.qml +12 -12
- RinUI/utils/FloatLayer.qml +132 -123
- RinUI/utils/FontIconLoader.qml +13 -13
- RinUI/utils/Position.qml +19 -19
- RinUI/utils/Severity.qml +13 -13
- RinUI/utils/Typography.qml +17 -17
- RinUI/utils/qmldir +4 -4
- RinUI/windows/CtrlBtn.qml +118 -118
- RinUI/windows/FluentPage.qml +92 -92
- RinUI/windows/FluentWindow.qml +31 -30
- RinUI/windows/FluentWindowBase.qml +158 -158
- RinUI/windows/TitleBar.qml +135 -135
- RinUI/windows/qmldir +7 -7
- RinUI/windows/window/ApplicationWindow.qml +8 -8
- RinUI/windows/window/Window.qml +118 -118
- {rinui-0.0.11.data → rinui-0.1.1.data}/data/LICENSE +21 -21
- {rinui-0.0.11.data → rinui-0.1.1.data}/data/README.md +100 -97
- {rinui-0.0.11.dist-info → rinui-0.1.1.dist-info}/METADATA +116 -112
- rinui-0.1.1.dist-info/RECORD +112 -0
- {rinui-0.0.11.dist-info → rinui-0.1.1.dist-info}/WHEEL +1 -1
- {rinui-0.0.11.dist-info → rinui-0.1.1.dist-info/licenses}/LICENSE +21 -21
- RinUI/__pycache__/__init__.cpython-38.pyc +0 -0
- RinUI/config/rin_ui.json +0 -8
- RinUI/core/__pycache__/__init__.cpython-38.pyc +0 -0
- RinUI/core/__pycache__/config.cpython-38.pyc +0 -0
- RinUI/core/__pycache__/launcher.cpython-38.pyc +0 -0
- RinUI/core/__pycache__/theme.cpython-38.pyc +0 -0
- RinUI/core/__pycache__/translator.cpython-38.pyc +0 -0
- rinui-0.0.11.dist-info/RECORD +0 -112
- {rinui-0.0.11.dist-info → rinui-0.1.1.dist-info}/entry_points.txt +0 -0
- {rinui-0.0.11.dist-info → rinui-0.1.1.dist-info}/top_level.txt +0 -0
RinUI/themes/utils.qml
CHANGED
@@ -1,37 +1,37 @@
|
|
1
|
-
pragma Singleton
|
2
|
-
import QtQuick 2.15
|
3
|
-
import "../assets/fonts/FluentSystemIcons-Index.js" as Icons
|
4
|
-
import "../themes"
|
5
|
-
import "../utils"
|
6
|
-
|
7
|
-
QtObject {
|
8
|
-
property string fontFamily: Qt.application.font.family // 默认字体
|
9
|
-
property string iconFontFamily: FontIconLoader.name
|
10
|
-
property string fontIconSource: Qt.resolvedUrl("../assets/fonts/FluentSystemIcons-Resizable.ttf") // 字体图标路径
|
11
|
-
property string fontIconIndexSource: Qt.resolvedUrl("../assets/fonts/FluentSystemIcons-Index.js") // 字体图标索引路径
|
12
|
-
property var fontIconIndex: Icons.FluentIcons // 字体图标索引
|
13
|
-
|
14
|
-
property color primaryColor: "#605ed2" // 默认主题色
|
15
|
-
property QtObject colors: Theme.currentTheme.colors // 主题颜色
|
16
|
-
property QtObject appearance: Theme.currentTheme.appearance // 界面外观
|
17
|
-
property QtObject typography: Theme.currentTheme.typography // 字体
|
18
|
-
|
19
|
-
property int windowDragArea: 5 // 窗口可拖动范围 (px)
|
20
|
-
property int dialogMaximumWidth: 600 // 对话框最大宽度 (px)
|
21
|
-
property int dialogMinimumWidth: 320 // 对话框最小宽度 (px)
|
22
|
-
|
23
|
-
property bool backdropEnabled: false // 是否启用背景特效
|
24
|
-
property int animationSpeed: 250 // 动画速度 (ms)
|
25
|
-
property int animationSpeedFaster: 120 // 动画速度 (ms)
|
26
|
-
property int appearanceSpeed: 175 // 界面切换速度 (ms)
|
27
|
-
property int animationSpeedMiddle: 450 // 动画速度 (ms)
|
28
|
-
property int progressBarAnimationSpeed: 1550 // 进度条动画速度 (ms)
|
29
|
-
|
30
|
-
function loadFontIconIndex() {
|
31
|
-
Qt.include(fontIconIndexSource);
|
32
|
-
}
|
33
|
-
|
34
|
-
Component.onCompleted: {
|
35
|
-
console.log("Font Family: " + fontFamily)
|
36
|
-
}
|
37
|
-
}
|
1
|
+
pragma Singleton
|
2
|
+
import QtQuick 2.15
|
3
|
+
import "../assets/fonts/FluentSystemIcons-Index.js" as Icons
|
4
|
+
import "../themes"
|
5
|
+
import "../utils"
|
6
|
+
|
7
|
+
QtObject {
|
8
|
+
property string fontFamily: Qt.application.font.family // 默认字体
|
9
|
+
property string iconFontFamily: FontIconLoader.name
|
10
|
+
property string fontIconSource: Qt.resolvedUrl("../assets/fonts/FluentSystemIcons-Resizable.ttf") // 字体图标路径
|
11
|
+
property string fontIconIndexSource: Qt.resolvedUrl("../assets/fonts/FluentSystemIcons-Index.js") // 字体图标索引路径
|
12
|
+
property var fontIconIndex: Icons.FluentIcons // 字体图标索引
|
13
|
+
|
14
|
+
property color primaryColor: "#605ed2" // 默认主题色
|
15
|
+
property QtObject colors: Theme.currentTheme.colors // 主题颜色
|
16
|
+
property QtObject appearance: Theme.currentTheme.appearance // 界面外观
|
17
|
+
property QtObject typography: Theme.currentTheme.typography // 字体
|
18
|
+
|
19
|
+
property int windowDragArea: 5 // 窗口可拖动范围 (px)
|
20
|
+
property int dialogMaximumWidth: 600 // 对话框最大宽度 (px)
|
21
|
+
property int dialogMinimumWidth: 320 // 对话框最小宽度 (px)
|
22
|
+
|
23
|
+
property bool backdropEnabled: false // 是否启用背景特效
|
24
|
+
property int animationSpeed: 250 // 动画速度 (ms)
|
25
|
+
property int animationSpeedFaster: 120 // 动画速度 (ms)
|
26
|
+
property int appearanceSpeed: 175 // 界面切换速度 (ms)
|
27
|
+
property int animationSpeedMiddle: 450 // 动画速度 (ms)
|
28
|
+
property int progressBarAnimationSpeed: 1550 // 进度条动画速度 (ms)
|
29
|
+
|
30
|
+
function loadFontIconIndex() {
|
31
|
+
Qt.include(fontIconIndexSource);
|
32
|
+
}
|
33
|
+
|
34
|
+
Component.onCompleted: {
|
35
|
+
console.log("Font Family: " + fontFamily)
|
36
|
+
}
|
37
|
+
}
|
RinUI/utils/Animation.qml
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
pragma Singleton
|
2
|
-
import QtQuick 2.15
|
3
|
-
|
4
|
-
QtObject {
|
5
|
-
id: animation
|
6
|
-
|
7
|
-
enum Type {
|
8
|
-
Low,
|
9
|
-
Medium,
|
10
|
-
High
|
11
|
-
}
|
12
|
-
}
|
1
|
+
pragma Singleton
|
2
|
+
import QtQuick 2.15
|
3
|
+
|
4
|
+
QtObject {
|
5
|
+
id: animation
|
6
|
+
|
7
|
+
enum Type {
|
8
|
+
Low,
|
9
|
+
Medium,
|
10
|
+
High
|
11
|
+
}
|
12
|
+
}
|
RinUI/utils/FloatLayer.qml
CHANGED
@@ -1,123 +1,132 @@
|
|
1
|
-
import QtQuick 2.15
|
2
|
-
import QtQuick.Controls 2.15
|
3
|
-
import QtQuick.Layouts 2.15
|
4
|
-
import "../components"
|
5
|
-
|
6
|
-
|
7
|
-
Item {
|
8
|
-
id: floatLayer
|
9
|
-
anchors.fill: parent
|
10
|
-
anchors.margins: margins
|
11
|
-
property int margins: 32
|
12
|
-
property int spacing: 12
|
13
|
-
|
14
|
-
// Position
|
15
|
-
ColumnLayout {
|
16
|
-
id: topLeft
|
17
|
-
anchors.top: parent.top
|
18
|
-
anchors.left: parent.left
|
19
|
-
spacing: floatLayer.spacing
|
20
|
-
width: floatLayer.width / 2
|
21
|
-
}
|
22
|
-
|
23
|
-
ColumnLayout {
|
24
|
-
id: topCenter
|
25
|
-
anchors.top: parent.top
|
26
|
-
anchors.horizontalCenter: parent.horizontalCenter
|
27
|
-
spacing: floatLayer.spacing
|
28
|
-
width: floatLayer.width / 2
|
29
|
-
}
|
30
|
-
|
31
|
-
ColumnLayout {
|
32
|
-
id: topRight
|
33
|
-
anchors.top: parent.top
|
34
|
-
anchors.right: parent.right
|
35
|
-
spacing: floatLayer.spacing
|
36
|
-
width: floatLayer.width / 2
|
37
|
-
}
|
38
|
-
|
39
|
-
ColumnLayout {
|
40
|
-
id: bottomLeft
|
41
|
-
anchors.bottom: parent.bottom
|
42
|
-
anchors.left: parent.left
|
43
|
-
spacing: floatLayer.spacing
|
44
|
-
width: floatLayer.width / 2
|
45
|
-
}
|
46
|
-
|
47
|
-
ColumnLayout {
|
48
|
-
id: bottomCenter
|
49
|
-
anchors.bottom: parent.bottom
|
50
|
-
anchors.horizontalCenter: parent.horizontalCenter
|
51
|
-
spacing: floatLayer.spacing
|
52
|
-
width: floatLayer.width / 2
|
53
|
-
}
|
54
|
-
|
55
|
-
ColumnLayout {
|
56
|
-
id: bottomRight
|
57
|
-
anchors.bottom: parent.bottom
|
58
|
-
anchors.right: parent.right
|
59
|
-
spacing: floatLayer.spacing
|
60
|
-
width: floatLayer.width / 2
|
61
|
-
}
|
62
|
-
|
63
|
-
Component {
|
64
|
-
id: infoBarComponent
|
65
|
-
InfoBar {
|
66
|
-
// title: "Title"
|
67
|
-
// text: "Text"
|
68
|
-
Layout.fillWidth: true
|
69
|
-
}
|
70
|
-
}
|
71
|
-
|
72
|
-
|
73
|
-
// Functions / 方法 //
|
74
|
-
function createInfoBar( options = {} ){
|
75
|
-
try{
|
76
|
-
const { title, text, severity, timeout, position, closable } = options;
|
77
|
-
var infoContainer = infoBarComponent.createObject(determinePosition(position), {
|
78
|
-
title: title || "",
|
79
|
-
text: text || "",
|
80
|
-
severity: severity ?? Severity.Info,
|
81
|
-
position: position || Position.Top,
|
82
|
-
timeout: timeout ?? 1500,
|
83
|
-
closable: closable ?? true
|
84
|
-
});
|
85
|
-
|
86
|
-
// return infoContainer;
|
87
|
-
}
|
88
|
-
catch(err){
|
89
|
-
console.error("Error: error creating InfoBar" || err)
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
|
-
function createCustom(
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
return
|
121
|
-
|
122
|
-
|
123
|
-
|
1
|
+
import QtQuick 2.15
|
2
|
+
import QtQuick.Controls 2.15
|
3
|
+
import QtQuick.Layouts 2.15
|
4
|
+
import "../components"
|
5
|
+
|
6
|
+
|
7
|
+
Item {
|
8
|
+
id: floatLayer
|
9
|
+
anchors.fill: parent
|
10
|
+
anchors.margins: margins
|
11
|
+
property int margins: 32
|
12
|
+
property int spacing: 12
|
13
|
+
|
14
|
+
// Position
|
15
|
+
ColumnLayout {
|
16
|
+
id: topLeft
|
17
|
+
anchors.top: parent.top
|
18
|
+
anchors.left: parent.left
|
19
|
+
spacing: floatLayer.spacing
|
20
|
+
width: floatLayer.width / 2
|
21
|
+
}
|
22
|
+
|
23
|
+
ColumnLayout {
|
24
|
+
id: topCenter
|
25
|
+
anchors.top: parent.top
|
26
|
+
anchors.horizontalCenter: parent.horizontalCenter
|
27
|
+
spacing: floatLayer.spacing
|
28
|
+
width: floatLayer.width / 2
|
29
|
+
}
|
30
|
+
|
31
|
+
ColumnLayout {
|
32
|
+
id: topRight
|
33
|
+
anchors.top: parent.top
|
34
|
+
anchors.right: parent.right
|
35
|
+
spacing: floatLayer.spacing
|
36
|
+
width: floatLayer.width / 2
|
37
|
+
}
|
38
|
+
|
39
|
+
ColumnLayout {
|
40
|
+
id: bottomLeft
|
41
|
+
anchors.bottom: parent.bottom
|
42
|
+
anchors.left: parent.left
|
43
|
+
spacing: floatLayer.spacing
|
44
|
+
width: floatLayer.width / 2
|
45
|
+
}
|
46
|
+
|
47
|
+
ColumnLayout {
|
48
|
+
id: bottomCenter
|
49
|
+
anchors.bottom: parent.bottom
|
50
|
+
anchors.horizontalCenter: parent.horizontalCenter
|
51
|
+
spacing: floatLayer.spacing
|
52
|
+
width: floatLayer.width / 2
|
53
|
+
}
|
54
|
+
|
55
|
+
ColumnLayout {
|
56
|
+
id: bottomRight
|
57
|
+
anchors.bottom: parent.bottom
|
58
|
+
anchors.right: parent.right
|
59
|
+
spacing: floatLayer.spacing
|
60
|
+
width: floatLayer.width / 2
|
61
|
+
}
|
62
|
+
|
63
|
+
Component {
|
64
|
+
id: infoBarComponent
|
65
|
+
InfoBar {
|
66
|
+
// title: "Title"
|
67
|
+
// text: "Text"
|
68
|
+
Layout.fillWidth: true
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
// Functions / 方法 //
|
74
|
+
function createInfoBar( options = {} ){
|
75
|
+
try{
|
76
|
+
const { title, text, severity, timeout, position, closable } = options;
|
77
|
+
var infoContainer = infoBarComponent.createObject(determinePosition(position), {
|
78
|
+
title: title || "",
|
79
|
+
text: text || "",
|
80
|
+
severity: severity ?? Severity.Info,
|
81
|
+
position: position || Position.Top,
|
82
|
+
timeout: timeout ?? 1500,
|
83
|
+
closable: closable ?? true
|
84
|
+
});
|
85
|
+
|
86
|
+
// return infoContainer;
|
87
|
+
}
|
88
|
+
catch(err){
|
89
|
+
console.error("Error: error creating InfoBar" || err)
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
function createCustom(component) {
|
94
|
+
try {
|
95
|
+
// 用 floatLayer 作为临时父对象
|
96
|
+
var infoContainer = component.createObject(floatLayer);
|
97
|
+
if (!infoContainer) throw "Failed to create component instance.";
|
98
|
+
|
99
|
+
var pos = infoContainer.position;
|
100
|
+
|
101
|
+
var realParent = determinePosition(pos);
|
102
|
+
if (realParent && realParent !== floatLayer) {
|
103
|
+
infoContainer.parent = realParent;
|
104
|
+
}
|
105
|
+
} catch(err) {
|
106
|
+
console.error("Error: error creating component: ", component.objectName || err);
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
|
111
|
+
function determinePosition(position){
|
112
|
+
switch(position){
|
113
|
+
case Position.TopLeft:
|
114
|
+
return topLeft;
|
115
|
+
case Position.Top:
|
116
|
+
return topCenter;
|
117
|
+
case Position.TopRight:
|
118
|
+
return topRight;
|
119
|
+
case Position.BottomLeft:
|
120
|
+
return bottomLeft;
|
121
|
+
case Position.Bottom:
|
122
|
+
return bottomCenter;
|
123
|
+
case Position.BottomRight:
|
124
|
+
return bottomRight;
|
125
|
+
case undefined:
|
126
|
+
return topCenter;
|
127
|
+
default:
|
128
|
+
console.log("Invalid position")
|
129
|
+
return topCenter;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
RinUI/utils/FontIconLoader.qml
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
pragma Singleton
|
2
|
-
import QtQuick 2.15
|
3
|
-
import "../themes"
|
4
|
-
|
5
|
-
|
6
|
-
Item {
|
7
|
-
property string name: fontLoader.name
|
8
|
-
FontLoader {
|
9
|
-
id: fontLoader
|
10
|
-
source: Utils.fontIconSource
|
11
|
-
}
|
12
|
-
|
13
|
-
Component.onCompleted: console.log("Font Source:", fontLoader.name, "Status:", fontLoader.status)
|
1
|
+
pragma Singleton
|
2
|
+
import QtQuick 2.15
|
3
|
+
import "../themes"
|
4
|
+
|
5
|
+
|
6
|
+
Item {
|
7
|
+
property string name: fontLoader.name
|
8
|
+
FontLoader {
|
9
|
+
id: fontLoader
|
10
|
+
source: Utils.fontIconSource
|
11
|
+
}
|
12
|
+
|
13
|
+
Component.onCompleted: console.log("Font Source:", fontLoader.name, "Status:", fontLoader.status)
|
14
14
|
}
|
RinUI/utils/Position.qml
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
pragma Singleton
|
2
|
-
import QtQuick 2.15
|
3
|
-
|
4
|
-
QtObject {
|
5
|
-
id: typography
|
6
|
-
|
7
|
-
enum Type {
|
8
|
-
Top,
|
9
|
-
Bottom,
|
10
|
-
Left,
|
11
|
-
Right,
|
12
|
-
TopLeft,
|
13
|
-
TopRight,
|
14
|
-
BottomLeft,
|
15
|
-
BottomRight,
|
16
|
-
Center,
|
17
|
-
None
|
18
|
-
}
|
19
|
-
}
|
1
|
+
pragma Singleton
|
2
|
+
import QtQuick 2.15
|
3
|
+
|
4
|
+
QtObject {
|
5
|
+
id: typography
|
6
|
+
|
7
|
+
enum Type {
|
8
|
+
Top,
|
9
|
+
Bottom,
|
10
|
+
Left,
|
11
|
+
Right,
|
12
|
+
TopLeft,
|
13
|
+
TopRight,
|
14
|
+
BottomLeft,
|
15
|
+
BottomRight,
|
16
|
+
Center,
|
17
|
+
None
|
18
|
+
}
|
19
|
+
}
|
RinUI/utils/Severity.qml
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
pragma Singleton
|
2
|
-
import QtQuick 2.15
|
3
|
-
|
4
|
-
QtObject {
|
5
|
-
id: typography
|
6
|
-
|
7
|
-
enum Type {
|
8
|
-
Info,
|
9
|
-
Success,
|
10
|
-
Warning,
|
11
|
-
Error
|
12
|
-
}
|
13
|
-
}
|
1
|
+
pragma Singleton
|
2
|
+
import QtQuick 2.15
|
3
|
+
|
4
|
+
QtObject {
|
5
|
+
id: typography
|
6
|
+
|
7
|
+
enum Type {
|
8
|
+
Info,
|
9
|
+
Success,
|
10
|
+
Warning,
|
11
|
+
Error
|
12
|
+
}
|
13
|
+
}
|
RinUI/utils/Typography.qml
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
pragma Singleton
|
2
|
-
import QtQuick 2.15
|
3
|
-
|
4
|
-
QtObject {
|
5
|
-
id: typography
|
6
|
-
|
7
|
-
enum Type {
|
8
|
-
Display,
|
9
|
-
TitleLarge,
|
10
|
-
Title,
|
11
|
-
Subtitle,
|
12
|
-
Body,
|
13
|
-
BodyStrong,
|
14
|
-
BodyLarge,
|
15
|
-
Caption
|
16
|
-
}
|
17
|
-
}
|
1
|
+
pragma Singleton
|
2
|
+
import QtQuick 2.15
|
3
|
+
|
4
|
+
QtObject {
|
5
|
+
id: typography
|
6
|
+
|
7
|
+
enum Type {
|
8
|
+
Display,
|
9
|
+
TitleLarge,
|
10
|
+
Title,
|
11
|
+
Subtitle,
|
12
|
+
Body,
|
13
|
+
BodyStrong,
|
14
|
+
BodyLarge,
|
15
|
+
Caption
|
16
|
+
}
|
17
|
+
}
|
RinUI/utils/qmldir
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
singleton Typography 1.0 Typography.qml
|
2
|
-
singleton Severity 1.0 Severity.qml
|
3
|
-
singleton Position 1.0 Position.qml
|
4
|
-
FloatLayer 1.0 FloatLayer.qml
|
1
|
+
singleton Typography 1.0 Typography.qml
|
2
|
+
singleton Severity 1.0 Severity.qml
|
3
|
+
singleton Position 1.0 Position.qml
|
4
|
+
FloatLayer 1.0 FloatLayer.qml
|
5
5
|
singleton FontIconLoader 1.0 FontIconLoader.qml
|