mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 21:14:15 +02:00
[ui] changing uninstall and settings icons colors
This commit is contained in:
@@ -14,7 +14,7 @@ from bauh.api.abstract.cache import MemoryCache
|
||||
from bauh.api.abstract.model import PackageStatus
|
||||
from bauh.commons.html import strip_html
|
||||
from bauh.view.qt import dialog
|
||||
from bauh.view.qt.colors import GREEN
|
||||
from bauh.view.qt.colors import GREEN, BROWN
|
||||
from bauh.view.qt.components import IconButton
|
||||
from bauh.view.qt.view_model import PackageView
|
||||
from bauh.view.util import resource
|
||||
@@ -301,7 +301,7 @@ class AppsTable(QTableWidget):
|
||||
def uninstall():
|
||||
self._uninstall_app(pkg)
|
||||
|
||||
style = 'color: {c}; font-size: 10px; font-weight: bold;'.format(c='#c87137')
|
||||
style = 'color: {c}; font-size: 10px; font-weight: bold;'.format(c=BROWN)
|
||||
item = self._gen_row_button(self.i18n['uninstall'].capitalize(), style, uninstall)
|
||||
else:
|
||||
item = QLabel()
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
GREEN = '#91a069'
|
||||
ORANGE = '#ECB03E'
|
||||
BROWN = '#A77339'
|
||||
RED = '#FF614E'
|
||||
|
||||
@@ -15,6 +15,7 @@ from bauh.api.abstract.view import SingleSelectComponent, InputOption, MultipleS
|
||||
TextInputComponent, FormComponent, FileChooserComponent, ViewComponent, TabGroupComponent, PanelComponent, \
|
||||
TwoStateButtonComponent, TextComponent, SpacerComponent
|
||||
from bauh.view.qt import css
|
||||
from bauh.view.qt.colors import RED
|
||||
from bauh.view.util import resource
|
||||
from bauh.view.util.translation import I18n
|
||||
|
||||
@@ -607,7 +608,7 @@ class FormQt(QGroupBox):
|
||||
traceback.print_exc()
|
||||
icon = QIcon()
|
||||
|
||||
bt = IconButton(icon, i18n=self.i18n['clean'].capitalize(), action=clean_path, background='#cc0000', tooltip=self.i18n['action.run.tooltip'])
|
||||
bt = IconButton(icon, i18n=self.i18n['clean'].capitalize(), action=clean_path, background=RED, tooltip=self.i18n['action.run.tooltip'])
|
||||
|
||||
wrapped.layout().addWidget(bt)
|
||||
return label, wrapped
|
||||
|
||||
Reference in New Issue
Block a user