RinUI 0.1.3.post2__py3-none-any.whl → 0.1.3.2__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.
@@ -12,6 +12,7 @@ RowLayout {
12
12
  property alias navExpandWidth: navigationBar.expandWidth // 导航栏宽度
13
13
  property alias navMinimumExpandWidth: navigationBar.minimumExpandWidth // 导航栏保持展开时窗口的最小宽度
14
14
 
15
+ property alias navigationBar: navigationBar // 导航栏
15
16
  property alias navigationItems: navigationBar.navigationItems // 导航栏item
16
17
  property alias currentPage: navigationBar.currentPage // 当前页面索引
17
18
  property string defaultPage: "" // 默认索引项
@@ -125,7 +125,7 @@ Frame {
125
125
  id: bodyText
126
126
  property bool wrap: (
127
127
  (
128
- infoBar.width - iconWidget.width - titleText.width - rights.width - custom.width
128
+ infoBar.width - iconWidget.width - rights.width - custom.width
129
129
  - main.spacing * 5 - infoBar.padding * 2
130
130
  )
131
131
  < implicitWidth
@@ -31,7 +31,7 @@
31
31
  ? Theme.currentTheme.colors.systemCautionColor
32
32
  : state === ProgressRing.Error
33
33
  ? Theme.currentTheme.colors.systemCriticalColor
34
- : Theme.currentTheme.colors.primaryColor
34
+ : primaryColor
35
35
  property real _progress: (to - from) === 0
36
36
  ? 0
37
37
  : Math.max(0, Math.min(1, (value - from) / (to - from)))
RinUI/themes/Colors.qml CHANGED
@@ -6,8 +6,12 @@ QtObject {
6
6
  id: root
7
7
 
8
8
  readonly property var themeColors: Theme.currentTheme !== null && Theme.currentTheme !== undefined
9
- ? Theme.currentTheme.colors
10
- : undefined
9
+ ? Theme.currentTheme.colors
10
+ : undefined
11
+
12
+ // 明亮和暗色主题颜色,直接访问
13
+ readonly property var light: Qt.createQmlObject("import '../themes'; Light {}", root).colors
14
+ readonly property var dark: Qt.createQmlObject("import '../themes'; Dark {}", root).colors
11
15
 
12
16
  // JS Proxy 模拟动态属性访问
13
17
  readonly property var proxy: (function() {
RinUI/themes/theme.qml CHANGED
@@ -10,6 +10,9 @@ Item {
10
10
  Dark: "Dark",
11
11
  Auto: "Auto"
12
12
  })
13
+ readonly property var light: Qt.createQmlObject("import '../themes'; Light {}", themeManager)
14
+ readonly property var dark: Qt.createQmlObject("import '../themes'; Dark {}", themeManager)
15
+
13
16
  readonly property var effect: ({
14
17
  Mica: "mica",
15
18
  Acrylic: "acrylic",
@@ -15,6 +15,7 @@ FluentWindowBase {
15
15
  titleEnabled: false
16
16
  titleBarHeight: Theme.currentTheme.appearance.windowTitleBarHeight
17
17
 
18
+ property alias navigationView: navigationView // 导航栏
18
19
  property alias navigationItems: navigationView.navigationItems // 导航栏item
19
20
  property alias currentPage: navigationView.currentPage // 当前索引项
20
21
  property alias defaultPage: navigationView.defaultPage // 默认索引项
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RinUI
3
- Version: 0.1.3.post2
3
+ Version: 0.1.3.2
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
@@ -53,15 +53,15 @@ RinUI/components/Navigation/ErrorPage.qml,sha256=XplTs6CKs1Y1441uvp9nSD4AeD08OIq
53
53
  RinUI/components/Navigation/NavigationBar.qml,sha256=XJ9TTgDByGCfUBukNPYQRWhShtiaeJL5vFGZtWGU9Co,4896
54
54
  RinUI/components/Navigation/NavigationItem.qml,sha256=hXOx6FBL2yR1kXjibuNv1hN0aQZuI0NfcUxDdoYUj9c,5754
55
55
  RinUI/components/Navigation/NavigationSubItem.qml,sha256=MCrPLIJMPZxUiGJRvtzfGAKBERtyjKYEkc-v6YxTD2U,2938
56
- RinUI/components/Navigation/NavigationView.qml,sha256=TRaNyLsZGAwf2M1CCzypLHy6qL6QtO2dXfni8A5nOZo,7350
56
+ RinUI/components/Navigation/NavigationView.qml,sha256=3kTwIoGd9OhnvZX7aiWsAxiN6z0cSgbixOgek4b7ypI,7412
57
57
  RinUI/components/Navigation/Segmented.qml,sha256=GnLKbJlNxGsaYnSnNflZ3rB3fe5HsRCySE1XEIQxGoQ,504
58
58
  RinUI/components/Navigation/SegmentedItem.qml,sha256=r2e1PteQJTPiqjpCqtGlSIuzCLG03ov9AcPIfqwRJDg,2894
59
59
  RinUI/components/Navigation/SelectorBar.qml,sha256=R0DWhWD75QaRYBYV5TTltJm4Y6KJ1ax29khdtn5GvDI,207
60
60
  RinUI/components/Navigation/SelectorBarItem.qml,sha256=ohdqUxczPJw_SNFLYOIu8rIYa3gWDH-PTd5DRQ8jUpU,2104
61
61
  RinUI/components/StatusAndInfo/InfoBadge.qml,sha256=G_mRlnGVhL-Eyo0LB7PWl-i8C-sUGzzXeKaVkz9Fpa0,2380
62
- RinUI/components/StatusAndInfo/InfoBar.qml,sha256=Uz2aiguRpA3K9K5-yy9GNTgJ9cy9a-LVxCI_XsqxfDk,7596
62
+ RinUI/components/StatusAndInfo/InfoBar.qml,sha256=M_oG4vNFEdPexCB8lOOwk57HEasyCc07cLNFxJ-HC80,7578
63
63
  RinUI/components/StatusAndInfo/ProgressBar.qml,sha256=GgV0rPLB1JCpwuSD2LOj7UX5JKVaCRkEsSC13kYObtY,3389
64
- RinUI/components/StatusAndInfo/ProgressRing.qml,sha256=bt-HDVgW-UXhrYEeGpnTOWTNsYGNHp6Q9B4U_qI3yAw,5118
64
+ RinUI/components/StatusAndInfo/ProgressRing.qml,sha256=-QJYPxCA427kMdHpcno0IUTsjPDKfcwQl7wWQEwoJ98,5092
65
65
  RinUI/components/StatusAndInfo/Toast.qml,sha256=XWZPgFBJnqoWoS6H9W3ycC9JTU1CTzehqVIm2KXhD6Y,6815
66
66
  RinUI/components/StatusAndInfo/ToolTip.qml,sha256=f6S9rG_0GsHQl8BB1m4Niik35s7LngelAasLfFkdR7s,2664
67
67
  RinUI/components/Text/SpinBox.qml,sha256=rY17yJ3a0ckkl6pX00qVIQQYLmoO-GLtcSZh-WKtPZs,4616
@@ -82,11 +82,11 @@ RinUI/languages/en_US.ts,sha256=G4-J3m4FUwJRhYvJg9aqS4MYXVu6TQV_GvPBAJVrV-0,6804
82
82
  RinUI/languages/zh_CN.qm,sha256=bQCxv9OfHL8xJbBZYXPZvpPJ6v_czMeVin5Kdnn7LSA,1697
83
83
  RinUI/languages/zh_CN.ts,sha256=fKkkNsnSkFtPXpDiHWhoNnbmGGbTnGz81lrZYeSFVaE,6578
84
84
  RinUI/themes/Appearance.qml,sha256=pnPx47L7A1NZT0qiIfltf9ktnK-dWRi6MqUjMLdxeww,1002
85
- RinUI/themes/Colors.qml,sha256=rB5uTRHuQEVeP8i0pDVQqUqtAt0fD64xF9L4oo3PckY,994
85
+ RinUI/themes/Colors.qml,sha256=SNEPT4BQZ1VhM4LL62ne-3nKWs6benQO-zGlNbInYX4,1245
86
86
  RinUI/themes/dark.qml,sha256=qAn7MDh18K-44f4gPIRiA1l_T_PWoBxhhzh0Z6igC0w,5793
87
87
  RinUI/themes/light.qml,sha256=L1Qy1yotvF3GemfhQxxTt1keyMdsjOoK9COP6NyVQHE,5741
88
88
  RinUI/themes/qmldir,sha256=7SbN6C8cqEW6VvPb-eYg9AlppfkehmekbciYNHRoNSA,184
89
- RinUI/themes/theme.qml,sha256=NRHnyGOW9o1se9xOq-_7YwOeLcgEyRRJl6wpbWnUrV8,3991
89
+ RinUI/themes/theme.qml,sha256=VnXAtwu1HN37b_yE9WxYxvBsF2vqlyDQl6JaTbw_1UY,4186
90
90
  RinUI/themes/utils.qml,sha256=wJfvrsBTYZWi3uJmS-LFIJmsGWzxuT1lTvA7ufiG6Qg,1735
91
91
  RinUI/utils/Animation.qml,sha256=hRzsJU_5G78JArYLvVtxTmRxX2VAuMgeWdAHzqyuYWQ,134
92
92
  RinUI/utils/FloatLayer.qml,sha256=D0rkYxK6_09OjrNuLHDXhdsb4xbUq5l2IiuLHCsLGhE,3471
@@ -97,18 +97,18 @@ RinUI/utils/Typography.qml,sha256=EJIlEymSWH4lWyRIrdWD9UZaExgGld81YQF1diaKKq8,23
97
97
  RinUI/utils/qmldir,sha256=W2UTrZ5VPdRO64FZ3Pw-_8B2UPj7A_eHsGrLPvWtiZY,189
98
98
  RinUI/windows/CtrlBtn.qml,sha256=8wQH3PWYmZ_e6A0_CIdmYa7uIrU6O6MZCG_RR4S4fkg,3152
99
99
  RinUI/windows/FluentPage.qml,sha256=J7mXTOyMahdWA8U13rSjesJVsvxklZFQyqwVMiJarT8,2748
100
- RinUI/windows/FluentWindow.qml,sha256=fR7JsLa-0QqrKFCh4kh6ZhQL7LoIRSPChKuoiYCeGLs,905
100
+ RinUI/windows/FluentWindow.qml,sha256=CUx9H5crOKtPSCnA6_AUst4PcLEbhSjDRrSuWH8novA,969
101
101
  RinUI/windows/FluentWindowBase.qml,sha256=rUUHO1lIjIIvrHjKHwSIEn8WOG2kY45mJQQT_KrGZDM,4335
102
102
  RinUI/windows/TitleBar.qml,sha256=zzGfAo2p_SIFXarCuVG_zWhrraRBjIx9MS3cc_wV710,3645
103
103
  RinUI/windows/WindowManager.qml,sha256=5XFddF38KP-TWhMVesqzQElr3ySrBWVIVuuiBgqi3A4,857
104
104
  RinUI/windows/qmldir,sha256=oxyWR7Q8dWCrwwCwGNyf3l60qe6s4-beiZWWMAEkKcM,252
105
105
  RinUI/windows/window/ApplicationWindow.qml,sha256=qRaM8IY0TJxfq1j1DogTMyrPjyoXkuWVzxtZQLzRtOQ,167
106
106
  RinUI/windows/window/Window.qml,sha256=90YjjRoaul9qK4FxNy73zTaPuUmLvk_RjcPlBEa7DNI,3189
107
- rinui-0.1.3.post2.data/data/LICENSE,sha256=vgoqqpny5vKYu34VDBUWYQKzT7Nn-Xy9y8USmcOCyZQ,1063
108
- rinui-0.1.3.post2.data/data/README.md,sha256=8ZcR55RYV2slRAQbhoYhqDTPOLXmewkFSvuA_cE6zD0,3044
109
- rinui-0.1.3.post2.dist-info/licenses/LICENSE,sha256=vgoqqpny5vKYu34VDBUWYQKzT7Nn-Xy9y8USmcOCyZQ,1063
110
- rinui-0.1.3.post2.dist-info/METADATA,sha256=JH2P93cBBxDkTD9BZYiynXezqmxwMMvT2MgTzqAVQdY,3581
111
- rinui-0.1.3.post2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
112
- rinui-0.1.3.post2.dist-info/entry_points.txt,sha256=taxuZYCggoQa2LPubwcurQYRjBRC4cNYOjWaqOYZVxw,54
113
- rinui-0.1.3.post2.dist-info/top_level.txt,sha256=vKKjXBXEw5OFRIzTxZWUC5ZOj0CK5e3atbymBB4eJ6w,6
114
- rinui-0.1.3.post2.dist-info/RECORD,,
107
+ rinui-0.1.3.2.data/data/LICENSE,sha256=vgoqqpny5vKYu34VDBUWYQKzT7Nn-Xy9y8USmcOCyZQ,1063
108
+ rinui-0.1.3.2.data/data/README.md,sha256=8ZcR55RYV2slRAQbhoYhqDTPOLXmewkFSvuA_cE6zD0,3044
109
+ rinui-0.1.3.2.dist-info/licenses/LICENSE,sha256=vgoqqpny5vKYu34VDBUWYQKzT7Nn-Xy9y8USmcOCyZQ,1063
110
+ rinui-0.1.3.2.dist-info/METADATA,sha256=20k38TI3U59A4FsjqtkJ5IeyX9XQBn3jl33b1UgdPeM,3577
111
+ rinui-0.1.3.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
112
+ rinui-0.1.3.2.dist-info/entry_points.txt,sha256=taxuZYCggoQa2LPubwcurQYRjBRC4cNYOjWaqOYZVxw,54
113
+ rinui-0.1.3.2.dist-info/top_level.txt,sha256=vKKjXBXEw5OFRIzTxZWUC5ZOj0CK5e3atbymBB4eJ6w,6
114
+ rinui-0.1.3.2.dist-info/RECORD,,