MCPcopy Create free account
hub / github.com/BasicProtein/AugmentCode-Free / get_combobox_style

Function get_combobox_style

gui_qt6/styles.py:96–138  ·  view source on GitHub ↗

下拉框样式

()

Source from the content-addressed store, hash-verified

94
95
96def get_combobox_style() -> str:
97 """下拉框样式"""
98 return f"""
99 QComboBox {{
100 background-color: {COLORS['surface']};
101 border: 1px solid {COLORS['border']};
102 border-radius: 6px;
103 padding: 8px 12px;
104 min-width: 120px;
105 color: {COLORS['text_primary']};
106 }}
107
108 QComboBox:hover {{
109 border-color: {COLORS['primary']};
110 }}
111
112 QComboBox:focus {{
113 border-color: {COLORS['primary']};
114 outline: none;
115 }}
116
117 QComboBox::drop-down {{
118 border: none;
119 width: 20px;
120 }}
121
122 QComboBox::down-arrow {{
123 image: none;
124 border-left: 5px solid transparent;
125 border-right: 5px solid transparent;
126 border-top: 5px solid {COLORS['text_secondary']};
127 margin-right: 5px;
128 }}
129
130 QComboBox QAbstractItemView {{
131 background-color: {COLORS['surface']};
132 border: 1px solid {COLORS['border']};
133 border-radius: 6px;
134 selection-background-color: {COLORS['primary']};
135 selection-color: white;
136 padding: 4px;
137 }}
138 """
139
140
141def get_label_style() -> str:

Callers 1

get_complete_styleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected