RinUI 0.0.9.post1__tar.gz → 0.0.9.1__tar.gz

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 (107) hide show
  1. {rinui-0.0.9.post1/RinUI.egg-info → rinui-0.0.9.1}/PKG-INFO +2 -2
  2. {rinui-0.0.9.post1 → rinui-0.0.9.1}/README.md +1 -1
  3. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/__init__.py +1 -1
  4. rinui-0.0.9.1/RinUI/components/DateAndTime/TimePicker.qml +115 -0
  5. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Navigation/NavigationView.qml +15 -1
  6. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/ScrollBar.qml +41 -0
  7. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/core/__pycache__/__init__.cpython-38.pyc +0 -0
  8. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/core/__pycache__/launcher.cpython-38.pyc +0 -0
  9. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/core/launcher.py +0 -2
  10. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/themes/utils.qml +3 -2
  11. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/windows/FluentWindowBase.qml +3 -1
  12. {rinui-0.0.9.post1 → rinui-0.0.9.1/RinUI.egg-info}/PKG-INFO +2 -2
  13. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI.egg-info/SOURCES.txt +1 -0
  14. {rinui-0.0.9.post1 → rinui-0.0.9.1}/pyproject.toml +1 -1
  15. {rinui-0.0.9.post1 → rinui-0.0.9.1}/LICENSE +0 -0
  16. {rinui-0.0.9.post1 → rinui-0.0.9.1}/MANIFEST.in +0 -0
  17. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/__pycache__/__init__.cpython-38.pyc +0 -0
  18. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/assets/fonts/FluentSystemIcons-Index.js +0 -0
  19. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/assets/fonts/FluentSystemIcons-Resizable.ttf +0 -0
  20. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/assets/img/default_app_icon.png +0 -0
  21. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Base.qml +0 -0
  22. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/BasicInput/Button.qml +0 -0
  23. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/BasicInput/CheckBox.qml +0 -0
  24. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/BasicInput/ComboBox.qml +0 -0
  25. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/BasicInput/DropDownButton.qml +0 -0
  26. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/BasicInput/Hyperlink.qml +0 -0
  27. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/BasicInput/RadioButton.qml +0 -0
  28. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/BasicInput/Slider.qml +0 -0
  29. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/BasicInput/Switch.qml +0 -0
  30. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/BasicInput/ToggleButton.qml +0 -0
  31. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/BasicInput/ToolButton.qml +0 -0
  32. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/ContextMenu.qml +0 -0
  33. /rinui-0.0.9.post1/RinUI/components/DateAndTime/TimePicker.qml → /rinui-0.0.9.1/RinUI/components/DateAndTime/DatePicker.qml +0 -0
  34. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/DateAndTime/PickerView.qml +0 -0
  35. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/DialogsAndFlyouts/Dialog.qml +0 -0
  36. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/DialogsAndFlyouts/DialogButtonBox.qml +0 -0
  37. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/DialogsAndFlyouts/Flyout.qml +0 -0
  38. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/DialogsAndFlyouts/Popup.qml +0 -0
  39. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/FocusIndicator.qml +0 -0
  40. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/IconWidget.qml +0 -0
  41. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Indicator.qml +0 -0
  42. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Layout/Expander.qml +0 -0
  43. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Layout/SettingExpander.qml +0 -0
  44. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Layout/SettingItem.qml +0 -0
  45. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/ListAndCollections/Clip.qml +0 -0
  46. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/ListAndCollections/Frame.qml +0 -0
  47. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/ListAndCollections/ListView.qml +0 -0
  48. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/ListAndCollections/ListViewDelegate.qml +0 -0
  49. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/ListAndCollections/SettingCard.qml +0 -0
  50. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/ListAndCollections/TableView.qml +0 -0
  51. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/ListAndCollections/TableViewDelegate.qml +0 -0
  52. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/MenusAndToolbars/Menu.qml +0 -0
  53. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/MenusAndToolbars/MenuBar.qml +0 -0
  54. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/MenusAndToolbars/MenuItem.qml +0 -0
  55. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/MenusAndToolbars/MenuItemGroup.qml +0 -0
  56. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/MenusAndToolbars/MenuSeparator.qml +0 -0
  57. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/MenusAndToolbars/ToolSeparator.qml +0 -0
  58. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Navigation/ErrorPage.qml +0 -0
  59. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Navigation/NavigationBar.qml +0 -0
  60. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Navigation/NavigationItem.qml +0 -0
  61. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Navigation/NavigationSubItem.qml +0 -0
  62. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Navigation/SelectorBar.qml +0 -0
  63. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/ScrollView.qml +0 -0
  64. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Shadow.qml +0 -0
  65. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/StatusAndInfo/InfoBadge.qml +0 -0
  66. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/StatusAndInfo/InfoBar.qml +0 -0
  67. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/StatusAndInfo/ProgressBar.qml +0 -0
  68. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/StatusAndInfo/Toast.qml +0 -0
  69. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/StatusAndInfo/ToolTip.qml +0 -0
  70. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Text/SpinBox.qml +0 -0
  71. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Text/Text.qml +0 -0
  72. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Text/TextField.qml +0 -0
  73. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Text/TextInput.qml +0 -0
  74. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/Utils/Blur.qml +0 -0
  75. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/components/qmldir +0 -0
  76. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/config/rin_ui.json +0 -0
  77. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/core/__init__.py +0 -0
  78. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/core/__pycache__/config.cpython-38.pyc +0 -0
  79. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/core/__pycache__/theme.cpython-38.pyc +0 -0
  80. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/core/config.py +0 -0
  81. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/core/theme.py +0 -0
  82. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/hooks/__init__.py +0 -0
  83. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/hooks/hook-RinUI.py +0 -0
  84. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/qmldir +0 -0
  85. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/themes/dark.qml +0 -0
  86. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/themes/light.qml +0 -0
  87. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/themes/qmldir +0 -0
  88. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/themes/theme.qml +0 -0
  89. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/utils/Animation.qml +0 -0
  90. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/utils/FloatLayer.qml +0 -0
  91. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/utils/FontIconLoader.qml +0 -0
  92. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/utils/Position.qml +0 -0
  93. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/utils/Severity.qml +0 -0
  94. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/utils/Typography.qml +0 -0
  95. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/utils/qmldir +0 -0
  96. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/windows/CtrlBtn.qml +0 -0
  97. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/windows/FluentPage.qml +0 -0
  98. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/windows/FluentWindow.qml +0 -0
  99. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/windows/TitleBar.qml +0 -0
  100. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/windows/qmldir +0 -0
  101. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/windows/window/ApplicationWindow.qml +0 -0
  102. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI/windows/window/Window.qml +0 -0
  103. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI.egg-info/dependency_links.txt +0 -0
  104. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI.egg-info/entry_points.txt +0 -0
  105. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI.egg-info/requires.txt +0 -0
  106. {rinui-0.0.9.post1 → rinui-0.0.9.1}/RinUI.egg-info/top_level.txt +0 -0
  107. {rinui-0.0.9.post1 → rinui-0.0.9.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: RinUI
3
- Version: 0.0.9.post1
3
+ Version: 0.0.9.1
4
4
  Summary: A Fluent Design-like UI library for Qt Quick (QML) based on PySide6
5
5
  Author-email: RinLit <lintu233_qwq@icloud.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -55,7 +55,7 @@ With simple configuration, you can quickly develop elegant UI interfaces in the
55
55
 
56
56
  You can install RinUI via pip: (coming soon, but now you can install via test-pypi)
57
57
  ```bash
58
- pip install RinUI # if RinUI in pypi
58
+ pip install RinUI
59
59
  ```
60
60
 
61
61
  Import RinUI in your QML file:
@@ -40,7 +40,7 @@ With simple configuration, you can quickly develop elegant UI interfaces in the
40
40
 
41
41
  You can install RinUI via pip: (coming soon, but now you can install via test-pypi)
42
42
  ```bash
43
- pip install RinUI # if RinUI in pypi
43
+ pip install RinUI
44
44
  ```
45
45
 
46
46
  Import RinUI in your QML file:
@@ -1,4 +1,4 @@
1
1
  from .core import *
2
2
 
3
- __version__ = "0.0.9"
3
+ __version__ = "0.0.9.1"
4
4
  __author__ = "RinLit"
@@ -0,0 +1,115 @@
1
+ import QtQuick 2.15
2
+ import QtQuick.Controls.Basic 2.15
3
+ import QtQuick.Layouts 2.15
4
+ import "../../themes"
5
+ import "../../components"
6
+
7
+ Button {
8
+ id: timePickerButton
9
+
10
+ property string amText: qsTr("AM")
11
+ property string pmText: qsTr("PM")
12
+ property string hourText: qsTr("hour")
13
+ property string minuteText: qsTr("minute")
14
+
15
+ // 是否使用24小时制
16
+ property bool use24Hour: false
17
+
18
+ property alias hour: pickerView.value1
19
+ property alias minute: pickerView.value2
20
+ property alias hourSystem: pickerView.value3
21
+
22
+ implicitWidth: 250
23
+ padding: 0
24
+
25
+ // 获取 / 设置时间 // Get / Set time (hh:mm)
26
+ // 获取 / 设置时间 (hh:mm)
27
+ property string time: {
28
+ if (!pickerView.gotData) return ""
29
+ let h = parseInt(hour)
30
+ if (!use24Hour) {
31
+ if (hourSystem === pmText && h < 12) h += 12
32
+ if (hourSystem === amText && h === 12) h = 0
33
+ }
34
+ let hh = h < 10 ? "0" + h : "" + h
35
+ let mm = parseInt(minute)
36
+ let mmStr = mm < 10 ? "0" + mm : "" + mm
37
+ return hh + ":" + mmStr
38
+ }
39
+
40
+ function setTime(hhmm) {
41
+ if (!hhmm || typeof hhmm !== "string" || !hhmm.match(/^\d{2}:\d{2}$/)) return
42
+
43
+ let parts = hhmm.split(":")
44
+ let h = parseInt(parts[0])
45
+ let m = parseInt(parts[1])
46
+
47
+ if (h >= 0 && h < 24 && m >= 0 && m < 60) {
48
+ if (use24Hour) {
49
+ pickerView.value1 = h.toString()
50
+ pickerView.value2 = m.toString()
51
+ pickerView.value3 = undefined
52
+ } else {
53
+ pickerView.value1 = ((h % 12 === 0) ? 12 : h % 12).toString()
54
+ pickerView.value2 = m.toString()
55
+ pickerView.value3 = h >= 12 ? pmText : amText
56
+ }
57
+ pickerView.gotData = true
58
+ }
59
+ }
60
+
61
+ // 重写按钮结果
62
+ contentItem: RowLayout {
63
+ anchors.fill: parent
64
+ spacing: 0
65
+
66
+ Text {
67
+ Layout.fillWidth: true
68
+ Layout.maximumWidth: use24Hour ? timePickerButton.implicitWidth / 2 : timePickerButton.implicitWidth / 3
69
+ color: pickerView.gotData ? Theme.currentTheme.colors.textColor
70
+ : Theme.currentTheme.colors.textSecondaryColor
71
+ horizontalAlignment: Text.AlignHCenter
72
+ verticalAlignment: Text.AlignVCenter
73
+
74
+ text: pickerView.gotData ? pickerView.value1 : hourText
75
+ }
76
+ ToolSeparator {
77
+ implicitHeight: 32
78
+ }
79
+ Text {
80
+ Layout.fillWidth: true
81
+ Layout.maximumWidth: use24Hour ? timePickerButton.implicitWidth / 2 : timePickerButton.implicitWidth / 3
82
+ color: pickerView.gotData ? Theme.currentTheme.colors.textColor
83
+ : Theme.currentTheme.colors.textSecondaryColor
84
+ horizontalAlignment: Text.AlignHCenter
85
+ verticalAlignment: Text.AlignVCenter
86
+
87
+ text: pickerView.gotData ? pickerView.value2 : minuteText
88
+ }
89
+ ToolSeparator {
90
+ implicitHeight: 32
91
+ visible: !use24Hour
92
+ }
93
+ Text {
94
+ Layout.fillWidth: true
95
+ Layout.maximumWidth: timePickerButton.implicitWidth / 3
96
+ color: pickerView.gotData ? Theme.currentTheme.colors.textColor
97
+ : Theme.currentTheme.colors.textSecondaryColor
98
+ horizontalAlignment: Text.AlignHCenter
99
+ verticalAlignment: Text.AlignVCenter
100
+
101
+ text: pickerView.gotData ? pickerView.value3 : amText
102
+ visible: !use24Hour
103
+ }
104
+ }
105
+
106
+ onClicked: pickerView.open()
107
+
108
+ PickerView {
109
+ id: pickerView
110
+ width: parent.width
111
+
112
+ model1: use24Hour ? 24 : 12
113
+ model3: use24Hour ? undefined : [amText, pmText]
114
+ }
115
+ }
@@ -42,7 +42,21 @@ RowLayout {
42
42
  Item {
43
43
  Layout.fillWidth: true
44
44
  Layout.fillHeight: true
45
- // clip: true
45
+
46
+ // 导航栏展开自动收起
47
+ MouseArea {
48
+ id: collapseCatcher
49
+ anchors.fill: parent
50
+ z: 1
51
+ hoverEnabled: true
52
+ acceptedButtons: Qt.AllButtons
53
+
54
+ visible: !navigationBar.collapsed && navigationBar.isNotOverMinimumWidth()
55
+
56
+ onClicked: {
57
+ navigationBar.collapsed = true
58
+ }
59
+ }
46
60
 
47
61
  Rectangle {
48
62
  id: appLayer
@@ -25,6 +25,47 @@ ScrollBar {
25
25
  horizontalPadding : horizontal ? 15 : 3
26
26
  enabled: size < 1.0
27
27
 
28
+ // 控制按钮 / Control Button //
29
+ ToolButton {
30
+ background: Item {} // 无背景
31
+
32
+ width: 15
33
+ height: 15
34
+ size: 8
35
+ color: Theme.currentTheme.colors.textSecondaryColor
36
+ icon.name: vertical ? "ic_fluent_triangle_up_20_filled" : "ic_fluent_triangle_left_20_filled"
37
+ anchors {
38
+ top: vertical ? parent.top : undefined
39
+ left: horizontal ? parent.left : undefined
40
+ horizontalCenter: vertical ? parent.horizontalCenter : undefined
41
+ verticalCenter: horizontal ? parent.verticalCenter : undefined
42
+ }
43
+ onClicked: scrollBar.decrease()
44
+
45
+ visible: scrollBar.size < 1.0
46
+ opacity: background.opacity
47
+ }
48
+
49
+ ToolButton {
50
+ background: Item {} // 无背景
51
+
52
+ width: 15
53
+ height: 15
54
+ size: 8
55
+ color: Theme.currentTheme.colors.textSecondaryColor
56
+ icon.name: vertical ? "ic_fluent_triangle_down_20_filled" : "ic_fluent_triangle_right_20_filled"
57
+ anchors {
58
+ bottom: vertical ? parent.bottom : undefined
59
+ right: horizontal ? parent.right : undefined
60
+ horizontalCenter: vertical ? parent.horizontalCenter : undefined
61
+ verticalCenter: horizontal ? parent.verticalCenter : undefined
62
+ }
63
+ onClicked: scrollBar.increase()
64
+
65
+ visible: scrollBar.size < 1.0
66
+ opacity: background.opacity
67
+ }
68
+
28
69
 
29
70
  // 内容 / Content //
30
71
  contentItem: Item {
@@ -73,7 +73,6 @@ class RinUIWindow:
73
73
  raise FileNotFoundError(f"Cannot find RinUI module: {rinui_import_path}")
74
74
 
75
75
  # 主题管理器
76
-
77
76
  self.engine.rootContext().setContextProperty("ThemeManager", self.theme_manager)
78
77
  try:
79
78
  self.engine.load(self.qml_path)
@@ -84,7 +83,6 @@ class RinUIWindow:
84
83
  raise RuntimeError(f"Error loading QML file: {self.qml_path}")
85
84
 
86
85
  # 窗口设置
87
-
88
86
  self.root_window = self.engine.rootObjects()[0]
89
87
 
90
88
  self.theme_manager.set_window(self.root_window)
@@ -5,9 +5,10 @@ import "../themes"
5
5
  import "../utils"
6
6
 
7
7
  QtObject {
8
- property string fontFamily: "Segoe UI" // 默认字体
8
+ property string fontFamily: Qt.application.font.family // 默认字体
9
9
  property string iconFontFamily: FontIconLoader.name
10
10
  property string fontIconSource: Qt.resolvedUrl("../assets/fonts/FluentSystemIcons-Resizable.ttf") // 字体图标路径
11
+ property string fontIconIndexSource: Qt.resolvedUrl("../assets/fonts/FluentSystemIcons-Index.js") // 字体图标索引路径
11
12
  property var fontIconIndex: Icons.FluentIcons // 字体图标索引
12
13
 
13
14
  property color primaryColor: "#605ed2" // 默认主题色
@@ -23,6 +24,6 @@ QtObject {
23
24
  property int progressBarAnimationSpeed: 1550 // 进度条动画速度 (ms)
24
25
 
25
26
  function loadFontIconIndex() {
26
- Qt.include("assets/fonts/FluentSystemIcons-Index.js");
27
+ Qt.include(fontIconIndexSource);
27
28
  }
28
29
  }
@@ -151,7 +151,9 @@ ApplicationWindow {
151
151
  if (p.x >= width - b) e |= Qt.RightEdge
152
152
  if (p.y < b) e |= Qt.TopEdge
153
153
  if (p.y >= height - b) e |= Qt.BottomEdge
154
- baseWindow.startSystemResize(e)
154
+ if (e !== 0) {
155
+ baseWindow.startSystemResize(e)
156
+ }
155
157
  }
156
158
  }
157
159
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: RinUI
3
- Version: 0.0.9.post1
3
+ Version: 0.0.9.1
4
4
  Summary: A Fluent Design-like UI library for Qt Quick (QML) based on PySide6
5
5
  Author-email: RinLit <lintu233_qwq@icloud.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -55,7 +55,7 @@ With simple configuration, you can quickly develop elegant UI interfaces in the
55
55
 
56
56
  You can install RinUI via pip: (coming soon, but now you can install via test-pypi)
57
57
  ```bash
58
- pip install RinUI # if RinUI in pypi
58
+ pip install RinUI
59
59
  ```
60
60
 
61
61
  Import RinUI in your QML file:
@@ -33,6 +33,7 @@ RinUI/components/BasicInput/Slider.qml
33
33
  RinUI/components/BasicInput/Switch.qml
34
34
  RinUI/components/BasicInput/ToggleButton.qml
35
35
  RinUI/components/BasicInput/ToolButton.qml
36
+ RinUI/components/DateAndTime/DatePicker.qml
36
37
  RinUI/components/DateAndTime/PickerView.qml
37
38
  RinUI/components/DateAndTime/TimePicker.qml
38
39
  RinUI/components/DialogsAndFlyouts/Dialog.qml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "RinUI"
7
- version = "0.0.9.post1"
7
+ version = "0.0.9.1"
8
8
  authors = [
9
9
  { name = "RinLit", email = "lintu233_qwq@icloud.com" }
10
10
  ]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes