RinUI 0.1.0__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/components/Base.qml +78 -78
- RinUI/components/BasicInput/Button.qml +146 -146
- 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 -87
- 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 +82 -82
- 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 +16 -16
- RinUI/components/Navigation/SegmentedItem.qml +107 -107
- RinUI/components/Navigation/SelectorBar.qml +12 -12
- RinUI/components/Navigation/SelectorBarItem.qml +88 -88
- 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 -80
- 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 -104
- RinUI/themes/Appearance.qml +36 -0
- RinUI/themes/Colors.qml +36 -0
- RinUI/themes/dark.qml +145 -145
- RinUI/themes/light.qml +145 -145
- 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.1.0.data → rinui-0.1.1.data}/data/LICENSE +21 -21
- {rinui-0.1.0.data → rinui-0.1.1.data}/data/README.md +100 -100
- {rinui-0.1.0.dist-info → rinui-0.1.1.dist-info}/METADATA +116 -115
- rinui-0.1.1.dist-info/RECORD +112 -0
- {rinui-0.1.0.dist-info → rinui-0.1.1.dist-info}/WHEEL +1 -1
- {rinui-0.1.0.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.1.0.dist-info/RECORD +0 -116
- {rinui-0.1.0.dist-info → rinui-0.1.1.dist-info}/entry_points.txt +0 -0
- {rinui-0.1.0.dist-info → rinui-0.1.1.dist-info}/top_level.txt +0 -0
@@ -1,108 +1,108 @@
|
|
1
|
-
import QtQuick 2.15
|
2
|
-
import QtQuick.Controls 2.15
|
3
|
-
import QtQuick.Layouts 2.15
|
4
|
-
import Qt5Compat.GraphicalEffects
|
5
|
-
import "../../components"
|
6
|
-
import "../../themes"
|
7
|
-
|
8
|
-
TabButton {
|
9
|
-
id: root
|
10
|
-
|
11
|
-
implicitWidth: Math.max(row.implicitWidth + 26 , 40)
|
12
|
-
implicitHeight: 32
|
13
|
-
|
14
|
-
background: Rectangle {
|
15
|
-
id: background
|
16
|
-
anchors.centerIn: parent
|
17
|
-
width: checked ? parent.width : parent.width - 4*2
|
18
|
-
height: checked ? parent.height : parent.height - 3*2
|
19
|
-
|
20
|
-
color: checked ? Theme.currentTheme.colors.controlFillColor :
|
21
|
-
hovered ? Theme.currentTheme.colors.subtleSecondaryColor : Theme.currentTheme.colors.subtleColor
|
22
|
-
radius: Theme.currentTheme.appearance.smallRadius
|
23
|
-
|
24
|
-
border.width: Theme.currentTheme.appearance.borderWidth // 边框宽度 / Border Width
|
25
|
-
border.color: checked ? Theme.currentTheme.colors.controlBorderColor : "transparent"
|
26
|
-
|
27
|
-
Behavior on scale {
|
28
|
-
NumberAnimation {
|
29
|
-
duration: Utils.animationSpeed
|
30
|
-
easing.type: Easing.OutQuart
|
31
|
-
}
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
Behavior on opacity {
|
36
|
-
NumberAnimation {
|
37
|
-
duration: Utils.animationSpeed
|
38
|
-
easing.type: Easing.InOutQuint
|
39
|
-
}
|
40
|
-
}
|
41
|
-
|
42
|
-
contentItem: Item {
|
43
|
-
clip: true
|
44
|
-
anchors.fill: parent
|
45
|
-
|
46
|
-
Row {
|
47
|
-
id: row
|
48
|
-
spacing: 8
|
49
|
-
anchors.centerIn: parent
|
50
|
-
IconWidget {
|
51
|
-
id: iconWidget
|
52
|
-
size: icon || source ? text.font.pixelSize * 1.3 : 0 // 图标大小 / Icon Size
|
53
|
-
icon: root.icon.name
|
54
|
-
source: root.icon.source
|
55
|
-
y: 0.25
|
56
|
-
}
|
57
|
-
|
58
|
-
Text {
|
59
|
-
id: text
|
60
|
-
typography: Typography.Body
|
61
|
-
text: root.text
|
62
|
-
color: Theme.currentTheme.colors.textColor
|
63
|
-
}
|
64
|
-
}
|
65
|
-
|
66
|
-
Indicator {
|
67
|
-
anchors {
|
68
|
-
bottom: parent.bottom
|
69
|
-
bottomMargin: Theme.currentTheme.appearance.borderWidth
|
70
|
-
horizontalCenter: parent.horizontalCenter
|
71
|
-
}
|
72
|
-
visible: root.checked
|
73
|
-
orientation: Qt.Horizontal
|
74
|
-
}
|
75
|
-
}
|
76
|
-
|
77
|
-
// 状态变化
|
78
|
-
states: [
|
79
|
-
State {
|
80
|
-
name: "disabled"
|
81
|
-
when: !enabled
|
82
|
-
PropertyChanges {
|
83
|
-
target: root
|
84
|
-
opacity: 0.65
|
85
|
-
}
|
86
|
-
},
|
87
|
-
State {
|
88
|
-
name: "pressed"
|
89
|
-
when: pressed
|
90
|
-
PropertyChanges {
|
91
|
-
target: root;
|
92
|
-
opacity: 0.67
|
93
|
-
}
|
94
|
-
PropertyChanges {
|
95
|
-
target: background;
|
96
|
-
scale: 0.95
|
97
|
-
}
|
98
|
-
},
|
99
|
-
State {
|
100
|
-
name: "hovered"
|
101
|
-
when: hovered
|
102
|
-
PropertyChanges {
|
103
|
-
target: root;
|
104
|
-
opacity: 0.875
|
105
|
-
}
|
106
|
-
}
|
107
|
-
]
|
1
|
+
import QtQuick 2.15
|
2
|
+
import QtQuick.Controls 2.15
|
3
|
+
import QtQuick.Layouts 2.15
|
4
|
+
import Qt5Compat.GraphicalEffects
|
5
|
+
import "../../components"
|
6
|
+
import "../../themes"
|
7
|
+
|
8
|
+
TabButton {
|
9
|
+
id: root
|
10
|
+
|
11
|
+
implicitWidth: Math.max(row.implicitWidth + 26 , 40)
|
12
|
+
implicitHeight: 32
|
13
|
+
|
14
|
+
background: Rectangle {
|
15
|
+
id: background
|
16
|
+
anchors.centerIn: parent
|
17
|
+
width: checked ? parent.width : parent.width - 4*2
|
18
|
+
height: checked ? parent.height : parent.height - 3*2
|
19
|
+
|
20
|
+
color: checked ? Theme.currentTheme.colors.controlFillColor :
|
21
|
+
hovered ? Theme.currentTheme.colors.subtleSecondaryColor : Theme.currentTheme.colors.subtleColor
|
22
|
+
radius: Theme.currentTheme.appearance.smallRadius
|
23
|
+
|
24
|
+
border.width: Theme.currentTheme.appearance.borderWidth // 边框宽度 / Border Width
|
25
|
+
border.color: checked ? Theme.currentTheme.colors.controlBorderColor : "transparent"
|
26
|
+
|
27
|
+
Behavior on scale {
|
28
|
+
NumberAnimation {
|
29
|
+
duration: Utils.animationSpeed
|
30
|
+
easing.type: Easing.OutQuart
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
Behavior on opacity {
|
36
|
+
NumberAnimation {
|
37
|
+
duration: Utils.animationSpeed
|
38
|
+
easing.type: Easing.InOutQuint
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
contentItem: Item {
|
43
|
+
clip: true
|
44
|
+
anchors.fill: parent
|
45
|
+
|
46
|
+
Row {
|
47
|
+
id: row
|
48
|
+
spacing: 8
|
49
|
+
anchors.centerIn: parent
|
50
|
+
IconWidget {
|
51
|
+
id: iconWidget
|
52
|
+
size: icon || source ? text.font.pixelSize * 1.3 : 0 // 图标大小 / Icon Size
|
53
|
+
icon: root.icon.name
|
54
|
+
source: root.icon.source
|
55
|
+
y: 0.25
|
56
|
+
}
|
57
|
+
|
58
|
+
Text {
|
59
|
+
id: text
|
60
|
+
typography: Typography.Body
|
61
|
+
text: root.text
|
62
|
+
color: Theme.currentTheme.colors.textColor
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
Indicator {
|
67
|
+
anchors {
|
68
|
+
bottom: parent.bottom
|
69
|
+
bottomMargin: Theme.currentTheme.appearance.borderWidth
|
70
|
+
horizontalCenter: parent.horizontalCenter
|
71
|
+
}
|
72
|
+
visible: root.checked
|
73
|
+
orientation: Qt.Horizontal
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
// 状态变化
|
78
|
+
states: [
|
79
|
+
State {
|
80
|
+
name: "disabled"
|
81
|
+
when: !enabled
|
82
|
+
PropertyChanges {
|
83
|
+
target: root
|
84
|
+
opacity: 0.65
|
85
|
+
}
|
86
|
+
},
|
87
|
+
State {
|
88
|
+
name: "pressed"
|
89
|
+
when: pressed
|
90
|
+
PropertyChanges {
|
91
|
+
target: root;
|
92
|
+
opacity: 0.67
|
93
|
+
}
|
94
|
+
PropertyChanges {
|
95
|
+
target: background;
|
96
|
+
scale: 0.95
|
97
|
+
}
|
98
|
+
},
|
99
|
+
State {
|
100
|
+
name: "hovered"
|
101
|
+
when: hovered
|
102
|
+
PropertyChanges {
|
103
|
+
target: root;
|
104
|
+
opacity: 0.875
|
105
|
+
}
|
106
|
+
}
|
107
|
+
]
|
108
108
|
}
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import QtQuick 2.15
|
2
|
-
import QtQuick.Controls 2.15
|
3
|
-
import QtQuick.Layouts 2.15
|
4
|
-
import "../../components"
|
5
|
-
import "../../themes"
|
6
|
-
|
7
|
-
|
8
|
-
TabBar {
|
9
|
-
id: root
|
10
|
-
implicitWidth: contentWidth
|
11
|
-
|
12
|
-
background: Item {}
|
1
|
+
import QtQuick 2.15
|
2
|
+
import QtQuick.Controls 2.15
|
3
|
+
import QtQuick.Layouts 2.15
|
4
|
+
import "../../components"
|
5
|
+
import "../../themes"
|
6
|
+
|
7
|
+
|
8
|
+
TabBar {
|
9
|
+
id: root
|
10
|
+
implicitWidth: contentWidth
|
11
|
+
|
12
|
+
background: Item {}
|
13
13
|
}
|
@@ -1,89 +1,89 @@
|
|
1
|
-
import QtQuick 2.15
|
2
|
-
import QtQuick.Controls 2.15
|
3
|
-
import QtQuick.Layouts 2.15
|
4
|
-
import Qt5Compat.GraphicalEffects
|
5
|
-
import "../../components"
|
6
|
-
import "../../themes"
|
7
|
-
|
8
|
-
TabButton {
|
9
|
-
id: root
|
10
|
-
|
11
|
-
implicitWidth: Math.max(row.implicitWidth + 26 , 40)
|
12
|
-
implicitHeight: 32
|
13
|
-
|
14
|
-
background: Item {}
|
15
|
-
|
16
|
-
Behavior on opacity {
|
17
|
-
NumberAnimation {
|
18
|
-
duration: Utils.animationSpeed
|
19
|
-
easing.type: Easing.InOutQuint
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
contentItem: Item {
|
24
|
-
clip: true
|
25
|
-
anchors.fill: parent
|
26
|
-
|
27
|
-
Row {
|
28
|
-
id: row
|
29
|
-
spacing: 8
|
30
|
-
anchors.centerIn: parent
|
31
|
-
IconWidget {
|
32
|
-
id: iconWidget
|
33
|
-
size: icon || source ? text.font.pixelSize * 1.3 : 0 // 图标大小 / Icon Size
|
34
|
-
icon: root.icon.name
|
35
|
-
source: root.icon.source
|
36
|
-
y: 0.25
|
37
|
-
}
|
38
|
-
|
39
|
-
Text {
|
40
|
-
id: text
|
41
|
-
typography: Typography.Body
|
42
|
-
text: root.text
|
43
|
-
color: Theme.currentTheme.colors.textColor
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
Indicator {
|
48
|
-
anchors {
|
49
|
-
bottom: parent.bottom
|
50
|
-
bottomMargin: Theme.currentTheme.appearance.borderWidth
|
51
|
-
horizontalCenter: parent.horizontalCenter
|
52
|
-
}
|
53
|
-
visible: root.checked
|
54
|
-
orientation: Qt.Horizontal
|
55
|
-
}
|
56
|
-
}
|
57
|
-
|
58
|
-
// 状态变化
|
59
|
-
states: [
|
60
|
-
State {
|
61
|
-
name: "disabled"
|
62
|
-
when: !enabled
|
63
|
-
PropertyChanges {
|
64
|
-
target: root
|
65
|
-
opacity: 0.65
|
66
|
-
}
|
67
|
-
},
|
68
|
-
State {
|
69
|
-
name: "pressed"
|
70
|
-
when: pressed
|
71
|
-
PropertyChanges {
|
72
|
-
target: root;
|
73
|
-
opacity: 0.67
|
74
|
-
}
|
75
|
-
PropertyChanges {
|
76
|
-
target: background;
|
77
|
-
scale: 0.95
|
78
|
-
}
|
79
|
-
},
|
80
|
-
State {
|
81
|
-
name: "hovered"
|
82
|
-
when: hovered
|
83
|
-
PropertyChanges {
|
84
|
-
target: root;
|
85
|
-
opacity: 0.875
|
86
|
-
}
|
87
|
-
}
|
88
|
-
]
|
1
|
+
import QtQuick 2.15
|
2
|
+
import QtQuick.Controls 2.15
|
3
|
+
import QtQuick.Layouts 2.15
|
4
|
+
import Qt5Compat.GraphicalEffects
|
5
|
+
import "../../components"
|
6
|
+
import "../../themes"
|
7
|
+
|
8
|
+
TabButton {
|
9
|
+
id: root
|
10
|
+
|
11
|
+
implicitWidth: Math.max(row.implicitWidth + 26 , 40)
|
12
|
+
implicitHeight: 32
|
13
|
+
|
14
|
+
background: Item {}
|
15
|
+
|
16
|
+
Behavior on opacity {
|
17
|
+
NumberAnimation {
|
18
|
+
duration: Utils.animationSpeed
|
19
|
+
easing.type: Easing.InOutQuint
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
contentItem: Item {
|
24
|
+
clip: true
|
25
|
+
anchors.fill: parent
|
26
|
+
|
27
|
+
Row {
|
28
|
+
id: row
|
29
|
+
spacing: 8
|
30
|
+
anchors.centerIn: parent
|
31
|
+
IconWidget {
|
32
|
+
id: iconWidget
|
33
|
+
size: icon || source ? text.font.pixelSize * 1.3 : 0 // 图标大小 / Icon Size
|
34
|
+
icon: root.icon.name
|
35
|
+
source: root.icon.source
|
36
|
+
y: 0.25
|
37
|
+
}
|
38
|
+
|
39
|
+
Text {
|
40
|
+
id: text
|
41
|
+
typography: Typography.Body
|
42
|
+
text: root.text
|
43
|
+
color: Theme.currentTheme.colors.textColor
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
Indicator {
|
48
|
+
anchors {
|
49
|
+
bottom: parent.bottom
|
50
|
+
bottomMargin: Theme.currentTheme.appearance.borderWidth
|
51
|
+
horizontalCenter: parent.horizontalCenter
|
52
|
+
}
|
53
|
+
visible: root.checked
|
54
|
+
orientation: Qt.Horizontal
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
// 状态变化
|
59
|
+
states: [
|
60
|
+
State {
|
61
|
+
name: "disabled"
|
62
|
+
when: !enabled
|
63
|
+
PropertyChanges {
|
64
|
+
target: root
|
65
|
+
opacity: 0.65
|
66
|
+
}
|
67
|
+
},
|
68
|
+
State {
|
69
|
+
name: "pressed"
|
70
|
+
when: pressed
|
71
|
+
PropertyChanges {
|
72
|
+
target: root;
|
73
|
+
opacity: 0.67
|
74
|
+
}
|
75
|
+
PropertyChanges {
|
76
|
+
target: background;
|
77
|
+
scale: 0.95
|
78
|
+
}
|
79
|
+
},
|
80
|
+
State {
|
81
|
+
name: "hovered"
|
82
|
+
when: hovered
|
83
|
+
PropertyChanges {
|
84
|
+
target: root;
|
85
|
+
opacity: 0.875
|
86
|
+
}
|
87
|
+
}
|
88
|
+
]
|
89
89
|
}
|