Skip to content

Commit

Permalink
chore: color changed in page_icon.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinaIceF committed Aug 23, 2024
1 parent 281796f commit 0b1f6b7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions examples/Gallery for siui/components/page_icons/page_icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ def __init__(self, *args, **kwargs):
self.package_selection_combobox.addOption(package_name)
self.package_selection_combobox.valueChanged.connect(self.on_package_changed)
self.package_selection_combobox.menu().setShowIcon(False)
self.package_selection_combobox.colorGroup().assign(
SiColor.INTERFACE_BG_B, self.colorGroup().fromToken(SiColor.INTERFACE_BG_A))
self.package_selection_combobox.colorGroup().assign(
SiColor.INTERFACE_BG_D, self.colorGroup().fromToken(SiColor.INTERFACE_BG_C))

self.search_description = SiLabel(self)
self.search_description.setStyleSheet(f"color: {self.colorGroup().fromToken(SiColor.TEXT_D)}")
Expand All @@ -94,6 +98,10 @@ def __init__(self, *args, **kwargs):
self.search_input_box.resize(256, 32)
self.search_input_box.reloadStyleSheet()
self.search_input_box.line_edit.textChanged.connect(self.on_search_text_changed)
self.search_input_box.colorGroup().assign(
SiColor.INTERFACE_BG_B, self.colorGroup().fromToken(SiColor.INTERFACE_BG_A))
self.search_input_box.colorGroup().assign(
SiColor.INTERFACE_BG_D, self.colorGroup().fromToken(SiColor.INTERFACE_BG_C))

self.package_operation_container.addWidget(self.package_selection_description)
self.package_operation_container.addWidget(self.package_selection_combobox)
Expand All @@ -115,9 +123,6 @@ def __init__(self, *args, **kwargs):
self.operation_panel_container_h = SiDenseHContainer(self)
self.operation_panel_container_h.setFixedHeight(48)
self.operation_panel_container_h.setAlignment(Qt.AlignCenter)
SiQuickEffect.applyDropShadowOn(self.operation_panel_container_h,
color=(0, 0, 0, 50),
blur_radius=32)

self.page_up_button = SiPushButton(self)
self.page_up_button.attachment().setText("上一页")
Expand Down

0 comments on commit 0b1f6b7

Please sign in to comment.