标签样式
()
| 139 | |
| 140 | |
| 141 | def get_label_style() -> str: |
| 142 | """标签样式""" |
| 143 | return f""" |
| 144 | QLabel {{ |
| 145 | color: {COLORS['text_primary']}; |
| 146 | background-color: transparent; |
| 147 | }} |
| 148 | |
| 149 | QLabel.title {{ |
| 150 | font-size: 24px; |
| 151 | font-weight: bold; |
| 152 | color: {COLORS['primary']}; |
| 153 | }} |
| 154 | |
| 155 | QLabel.subtitle {{ |
| 156 | font-size: 16px; |
| 157 | font-weight: bold; |
| 158 | color: {COLORS['text_primary']}; |
| 159 | }} |
| 160 | |
| 161 | QLabel.secondary {{ |
| 162 | color: {COLORS['text_secondary']}; |
| 163 | }} |
| 164 | |
| 165 | QLabel.link {{ |
| 166 | color: {COLORS['primary']}; |
| 167 | text-decoration: underline; |
| 168 | }} |
| 169 | |
| 170 | QLabel.link:hover {{ |
| 171 | color: {COLORS['primary_hover']}; |
| 172 | }} |
| 173 | |
| 174 | QLabel.warning {{ |
| 175 | color: {COLORS['warning_text']}; |
| 176 | background-color: {COLORS['warning_bg']}; |
| 177 | padding: 12px; |
| 178 | border-radius: 6px; |
| 179 | }} |
| 180 | """ |
| 181 | |
| 182 | |
| 183 | def get_textedit_style() -> str: |
no outgoing calls
no test coverage detected