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.
Files changed (114) hide show
  1. RinUI/__init__.py +4 -4
  2. RinUI/assets/fonts/FluentSystemIcons-Index.js +5255 -5255
  3. RinUI/components/Base.qml +78 -78
  4. RinUI/components/BasicInput/Button.qml +146 -146
  5. RinUI/components/BasicInput/CheckBox.qml +98 -98
  6. RinUI/components/BasicInput/ComboBox.qml +159 -159
  7. RinUI/components/BasicInput/DropDownButton.qml +20 -20
  8. RinUI/components/BasicInput/Hyperlink.qml +17 -17
  9. RinUI/components/BasicInput/PillButton.qml +10 -10
  10. RinUI/components/BasicInput/RadioButton.qml +94 -94
  11. RinUI/components/BasicInput/RoundButton.qml +26 -26
  12. RinUI/components/BasicInput/Slider.qml +212 -212
  13. RinUI/components/BasicInput/Switch.qml +101 -101
  14. RinUI/components/BasicInput/ToggleButton.qml +10 -10
  15. RinUI/components/BasicInput/ToolButton.qml +30 -30
  16. RinUI/components/ContextMenu.qml +183 -183
  17. RinUI/components/DateAndTime/DatePicker.qml +142 -140
  18. RinUI/components/DateAndTime/PickerView.qml +223 -223
  19. RinUI/components/DateAndTime/TimePicker.qml +114 -114
  20. RinUI/components/DialogsAndFlyouts/Dialog.qml +106 -106
  21. RinUI/components/DialogsAndFlyouts/DialogButtonBox.qml +47 -47
  22. RinUI/components/DialogsAndFlyouts/Flyout.qml +87 -87
  23. RinUI/components/DialogsAndFlyouts/Popup.qml +110 -106
  24. RinUI/components/FocusIndicator.qml +33 -33
  25. RinUI/components/IconWidget.qml +52 -52
  26. RinUI/components/Indicator.qml +89 -89
  27. RinUI/components/Layout/Expander.qml +159 -159
  28. RinUI/components/Layout/SettingExpander.qml +66 -66
  29. RinUI/components/Layout/SettingItem.qml +70 -70
  30. RinUI/components/ListAndCollections/Clip.qml +21 -21
  31. RinUI/components/ListAndCollections/Frame.qml +43 -43
  32. RinUI/components/ListAndCollections/ListView.qml +104 -104
  33. RinUI/components/ListAndCollections/ListViewDelegate.qml +82 -82
  34. RinUI/components/ListAndCollections/SettingCard.qml +72 -72
  35. RinUI/components/ListAndCollections/TableView.qml +81 -81
  36. RinUI/components/ListAndCollections/TableViewDelegate.qml +88 -88
  37. RinUI/components/Media/Avatar.qml +82 -82
  38. RinUI/components/MenusAndToolbars/Menu.qml +150 -150
  39. RinUI/components/MenusAndToolbars/MenuBar.qml +42 -42
  40. RinUI/components/MenusAndToolbars/MenuItem.qml +131 -131
  41. RinUI/components/MenusAndToolbars/MenuItemGroup.qml +43 -43
  42. RinUI/components/MenusAndToolbars/MenuSeparator.qml +13 -13
  43. RinUI/components/MenusAndToolbars/TextInputMenu.qml +37 -37
  44. RinUI/components/MenusAndToolbars/ToolSeparator.qml +16 -16
  45. RinUI/components/Navigation/ErrorPage.qml +48 -48
  46. RinUI/components/Navigation/NavigationBar.qml +179 -179
  47. RinUI/components/Navigation/NavigationItem.qml +193 -193
  48. RinUI/components/Navigation/NavigationSubItem.qml +103 -103
  49. RinUI/components/Navigation/NavigationView.qml +228 -227
  50. RinUI/components/Navigation/Segmented.qml +16 -16
  51. RinUI/components/Navigation/SegmentedItem.qml +107 -107
  52. RinUI/components/Navigation/SelectorBar.qml +12 -12
  53. RinUI/components/Navigation/SelectorBarItem.qml +88 -88
  54. RinUI/components/ScrollBar.qml +204 -204
  55. RinUI/components/ScrollView.qml +12 -12
  56. RinUI/components/Shadow.qml +47 -47
  57. RinUI/components/StatusAndInfo/InfoBadge.qml +77 -77
  58. RinUI/components/StatusAndInfo/InfoBar.qml +256 -251
  59. RinUI/components/StatusAndInfo/ProgressBar.qml +126 -126
  60. RinUI/components/StatusAndInfo/ProgressRing.qml +149 -0
  61. RinUI/components/StatusAndInfo/Toast.qml +236 -236
  62. RinUI/components/StatusAndInfo/ToolTip.qml +93 -93
  63. RinUI/components/Text/SpinBox.qml +150 -133
  64. RinUI/components/Text/Text.qml +44 -44
  65. RinUI/components/Text/TextArea.qml +117 -117
  66. RinUI/components/Text/TextField.qml +113 -113
  67. RinUI/components/Text/TextInput.qml +47 -47
  68. RinUI/components/qmldir +80 -80
  69. RinUI/core/__init__.py +4 -4
  70. RinUI/core/config.py +129 -129
  71. RinUI/core/launcher.py +129 -129
  72. RinUI/core/theme.py +339 -339
  73. RinUI/core/translator.py +25 -25
  74. RinUI/hooks/__init__.py +3 -3
  75. RinUI/hooks/hook-RinUI.py +3 -3
  76. RinUI/qmldir +108 -104
  77. RinUI/themes/Appearance.qml +36 -0
  78. RinUI/themes/Colors.qml +36 -0
  79. RinUI/themes/dark.qml +145 -145
  80. RinUI/themes/light.qml +145 -145
  81. RinUI/themes/qmldir +9 -6
  82. RinUI/themes/theme.qml +151 -149
  83. RinUI/themes/utils.qml +37 -37
  84. RinUI/utils/Animation.qml +12 -12
  85. RinUI/utils/FloatLayer.qml +132 -123
  86. RinUI/utils/FontIconLoader.qml +13 -13
  87. RinUI/utils/Position.qml +19 -19
  88. RinUI/utils/Severity.qml +13 -13
  89. RinUI/utils/Typography.qml +17 -17
  90. RinUI/utils/qmldir +4 -4
  91. RinUI/windows/CtrlBtn.qml +118 -118
  92. RinUI/windows/FluentPage.qml +92 -92
  93. RinUI/windows/FluentWindow.qml +31 -30
  94. RinUI/windows/FluentWindowBase.qml +158 -158
  95. RinUI/windows/TitleBar.qml +135 -135
  96. RinUI/windows/qmldir +7 -7
  97. RinUI/windows/window/ApplicationWindow.qml +8 -8
  98. RinUI/windows/window/Window.qml +118 -118
  99. {rinui-0.1.0.data → rinui-0.1.1.data}/data/LICENSE +21 -21
  100. {rinui-0.1.0.data → rinui-0.1.1.data}/data/README.md +100 -100
  101. {rinui-0.1.0.dist-info → rinui-0.1.1.dist-info}/METADATA +116 -115
  102. rinui-0.1.1.dist-info/RECORD +112 -0
  103. {rinui-0.1.0.dist-info → rinui-0.1.1.dist-info}/WHEEL +1 -1
  104. {rinui-0.1.0.dist-info → rinui-0.1.1.dist-info/licenses}/LICENSE +21 -21
  105. RinUI/__pycache__/__init__.cpython-38.pyc +0 -0
  106. RinUI/config/rin_ui.json +0 -8
  107. RinUI/core/__pycache__/__init__.cpython-38.pyc +0 -0
  108. RinUI/core/__pycache__/config.cpython-38.pyc +0 -0
  109. RinUI/core/__pycache__/launcher.cpython-38.pyc +0 -0
  110. RinUI/core/__pycache__/theme.cpython-38.pyc +0 -0
  111. RinUI/core/__pycache__/translator.cpython-38.pyc +0 -0
  112. rinui-0.1.0.dist-info/RECORD +0 -116
  113. {rinui-0.1.0.dist-info → rinui-0.1.1.dist-info}/entry_points.txt +0 -0
  114. {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
  }