Skip to content

Commit db3b2e5

Browse files
committed
fix: remove broken smooth scroll area
1 parent 0582336 commit db3b2e5

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/pages/guide.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from qfluentwidgets import (
44
BodyLabel,
55
SingleDirectionScrollArea,
6+
SmoothMode,
67
)
78

89

@@ -30,6 +31,13 @@ def __init__(self):
3031
The run logs box is also intended to serve as an example of how to pass data between worker threads and the main UI thread.
3132
</p>
3233
34+
<p>
35+
Projects using this template should have documentation either in the form of a page on the app, like this one, or using a Wiki in the
36+
repository. GitHub, for example, has a built-in Wiki page in each repository, to where you can point users. Both of these options have downsides
37+
and upsides. Using a page in the app is easier for users to access, but you will have to build and bundle the app anytime you want to update the documentation.
38+
Using the GitHub Wiki page of the repository will let you edit the documentation at any time, but users will have to go to the repository to access it.
39+
</p>
40+
3341
<h1>Tips</h1>
3442
3543
Improvements to build upon when using this template.
@@ -67,6 +75,7 @@ def __init__(self):
6775
)
6876
self.scrollArea.setWidgetResizable(True)
6977
self.scrollArea.enableTransparentBackground()
78+
self.scrollArea.setSmoothMode(SmoothMode.NO_SMOOTH)
7079

7180
self.mainLayout = QVBoxLayout()
7281
self.mainLayout.addWidget(self.scrollArea)

src/pages/home.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
PrimaryToolButton,
88
FluentIcon,
99
SingleDirectionScrollArea,
10+
SmoothMode,
1011
TextBrowser,
1112
InfoBar,
1213
InfoBarPosition,
@@ -114,6 +115,7 @@ def __init__(self):
114115
self.scrollArea.horizontalScrollBar().setVisible(False)
115116
self.scrollArea.setWidgetResizable(True)
116117
self.scrollArea.enableTransparentBackground()
118+
self.scrollArea.setSmoothMode(SmoothMode.NO_SMOOTH)
117119

118120
self.mainLayout = QVBoxLayout()
119121
self.mainLayout.addWidget(self.scrollArea)

src/pages/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
FluentIcon,
99
FlowLayout,
1010
SingleDirectionScrollArea,
11+
SmoothMode,
1112
Dialog,
1213
)
1314

@@ -82,6 +83,7 @@ def __init__(self):
8283
self.scrollArea.horizontalScrollBar().setVisible(False)
8384
self.scrollArea.setWidgetResizable(True)
8485
self.scrollArea.enableTransparentBackground()
86+
self.scrollArea.setSmoothMode(SmoothMode.NO_SMOOTH)
8587

8688
self.mainLayout = QVBoxLayout()
8789
self.mainLayout.addWidget(self.scrollArea)

0 commit comments

Comments
 (0)