Skip to content

Commit

Permalink
调整搜索界面详情以及 OPGG 英雄 build 界面滚动条样式
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Aug 5, 2024
1 parent 9e61496 commit 1cc0ba1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/view/opgg_build_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def __initLayout(self):
self.scrollWidget.setLayout(self.scrollLayout)
self.scrollArea.setWidget(self.scrollWidget)
self.scrollArea.setWidgetResizable(True)
self.scrollArea.setVerticalScrollBarPolicy(
Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
# self.scrollArea.setVerticalScrollBarPolicy(
# Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
# self.scrollArea.setViewportMargins(10, 10, 17, 10)
self.scrollArea.setViewportMargins(0, 0, 0, 0)
self.scrollArea.setViewportMargins(0, 0, 15, 0)
self.scrollWidget.setContentsMargins(0, 0, 0, 0)

self.scrollLayout.addWidget(self.titleBar)
Expand Down Expand Up @@ -877,7 +877,7 @@ def __initLayout(self):
self.hBoxLayout.addSpacerItem(QSpacerItem(
0, 0, QSizePolicy.Expanding, QSizePolicy.Fixed))
self.hBoxLayout.addLayout(self.playsLayout)
self.hBoxLayout.addSpacing(21)
self.hBoxLayout.addSpacing(29)
self.hBoxLayout.addWidget(self.pickRateLabel)

self.vBoxLayout.setContentsMargins(5, 5, 8, 5)
Expand Down
4 changes: 2 additions & 2 deletions app/view/search_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ def clear(self):

def __initLayout(self):
self.scrollArea.setObjectName("gameScrollArea")
self.scrollArea.setVerticalScrollBarPolicy(
Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
# self.scrollArea.setVerticalScrollBarPolicy(
# Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
self.scrollWidget.setObjectName("scrollWidget")

self.scrollWidget.setLayout(self.scrollLayout)
Expand Down

0 comments on commit 1cc0ba1

Please sign in to comment.