[ui] changing uninstall and settings icons colors

This commit is contained in:
Vinicius Moreira
2020-04-29 15:23:34 -03:00
parent 43ff8d070c
commit 9995a9d010
4 changed files with 12 additions and 9 deletions

View File

@@ -14,7 +14,7 @@ from bauh.api.abstract.cache import MemoryCache
from bauh.api.abstract.model import PackageStatus from bauh.api.abstract.model import PackageStatus
from bauh.commons.html import strip_html from bauh.commons.html import strip_html
from bauh.view.qt import dialog 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.components import IconButton
from bauh.view.qt.view_model import PackageView from bauh.view.qt.view_model import PackageView
from bauh.view.util import resource from bauh.view.util import resource
@@ -301,7 +301,7 @@ class AppsTable(QTableWidget):
def uninstall(): def uninstall():
self._uninstall_app(pkg) 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) item = self._gen_row_button(self.i18n['uninstall'].capitalize(), style, uninstall)
else: else:
item = QLabel() item = QLabel()

View File

@@ -1,2 +1,4 @@
GREEN = '#91a069' GREEN = '#91a069'
ORANGE = '#ECB03E' ORANGE = '#ECB03E'
BROWN = '#A77339'
RED = '#FF614E'

View File

@@ -15,6 +15,7 @@ from bauh.api.abstract.view import SingleSelectComponent, InputOption, MultipleS
TextInputComponent, FormComponent, FileChooserComponent, ViewComponent, TabGroupComponent, PanelComponent, \ TextInputComponent, FormComponent, FileChooserComponent, ViewComponent, TabGroupComponent, PanelComponent, \
TwoStateButtonComponent, TextComponent, SpacerComponent TwoStateButtonComponent, TextComponent, SpacerComponent
from bauh.view.qt import css from bauh.view.qt import css
from bauh.view.qt.colors import RED
from bauh.view.util import resource from bauh.view.util import resource
from bauh.view.util.translation import I18n from bauh.view.util.translation import I18n
@@ -607,7 +608,7 @@ class FormQt(QGroupBox):
traceback.print_exc() traceback.print_exc()
icon = QIcon() 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) wrapped.layout().addWidget(bt)
return label, wrapped return label, wrapped

View File

@@ -37,7 +37,7 @@
showgrid="false" showgrid="false"
showborder="true" showborder="true"
inkscape:zoom="29.5" inkscape:zoom="29.5"
inkscape:cx="4.0907752" inkscape:cx="4.1246735"
inkscape:cy="4.9615377" inkscape:cy="4.9615377"
inkscape:window-x="0" inkscape:window-x="0"
inkscape:window-y="0" inkscape:window-y="0"
@@ -50,23 +50,23 @@
<g <g
id="g1583" id="g1583"
transform="matrix(0.02354106,0,0,0.02294584,-0.02630954,0.12586496)" transform="matrix(0.02354106,0,0,0.02294584,-0.02630954,0.12586496)"
style="fill:#c87137;fill-opacity:1;stroke:#c87137;stroke-width:10.97066879;stroke-opacity:1"> style="fill:#aa66d8;fill-opacity:1;stroke:#aa66d8;stroke-width:10.97066879;stroke-opacity:1">
<g <g
id="g1581" id="g1581"
style="fill:#c87137;fill-opacity:1;stroke:#c87137;stroke-width:10.97066879;stroke-opacity:1"> style="fill:#aa66d8;fill-opacity:1;stroke:#aa66d8;stroke-width:10.97066879;stroke-opacity:1">
<g <g
id="g1579" id="g1579"
style="fill:#c87137;fill-opacity:1;stroke:#c87137;stroke-width:10.97066879;stroke-opacity:1"> style="fill:#aa66d8;fill-opacity:1;stroke:#aa66d8;stroke-width:10.97066879;stroke-opacity:1">
<path <path
d="m 496.659,312.128 -47.061,-36.8 c 0.619,-5.675 1.109,-12.309 1.109,-19.328 0,-7.019 -0.512,-13.653 -1.109,-19.328 l 47.104,-36.821 c 8.747,-6.912 11.157,-19.179 5.568,-29.397 L 453.331,85.782 C 447.976,76.033 435.966,71.574 425.022,75.606 L 369.491,97.899 C 358.867,90.219 347.71,83.734 336.168,78.55 L 327.72,19.649 C 326.334,8.448 316.606,0 305.107,0 h -98.133 c -11.499,0 -21.227,8.448 -22.592,19.435 l -8.469,59.115 c -11.179,5.056 -22.165,11.435 -33.28,19.371 L 86.953,75.564 C 76.308,71.404 64.19,75.799 58.857,85.569 l -49.003,84.8 c -5.781,9.771 -3.413,22.443 5.547,29.525 l 47.061,36.779 c -0.747,7.211 -1.109,13.461 -1.109,19.328 0,5.867 0.363,12.117 1.067,19.328 L 15.316,312.172 C 6.59,319.083 4.2,331.349 9.768,341.568 l 48.939,84.672 c 5.312,9.728 17.301,14.165 28.309,10.176 l 55.531,-22.293 c 10.624,7.659 21.803,14.144 33.344,19.349 l 8.448,58.88 c 1.387,11.2 11.115,19.648 22.613,19.648 h 98.133 c 11.499,0 21.227,-8.448 22.592,-19.435 l 8.469,-59.093 c 11.179,-5.056 22.165,-11.435 33.28,-19.371 l 55.68,22.357 c 10.603,4.117 22.763,-0.235 28.096,-10.005 l 49.195,-85.099 c 5.441,-9.983 3.051,-22.25 -5.738,-29.226 z m -12.907,18.773 -50.816,85.717 -61.077,-24.533 c -3.456,-1.387 -7.381,-0.853 -10.368,1.365 -13.227,9.899 -26.005,17.344 -39.104,22.699 -3.499,1.429 -5.995,4.608 -6.528,8.363 l -10.773,66.155 -99.563,-1.131 -9.323,-65.003 c -0.555,-3.755 -3.029,-6.933 -6.528,-8.363 -13.632,-5.589 -26.752,-13.205 -39.019,-22.635 -1.899,-1.472 -4.203,-2.219 -6.507,-2.219 -1.344,0 -2.688,0.235 -3.989,0.768 L 77.33,415.785 28.391,331.113 c -0.448,-0.832 -0.363,-1.792 0.149,-2.197 l 51.776,-40.469 c 2.944,-2.304 4.48,-6.016 4.011,-9.728 -1.131,-8.939 -1.643,-16.171 -1.643,-22.72 0,-6.549 0.533,-13.76 1.643,-22.72 0.469,-3.733 -1.067,-7.424 -4.011,-9.728 l -52.03,-42.431 50.816,-85.717 61.077,24.533 c 3.477,1.408 7.381,0.875 10.389,-1.365 13.205,-9.92 26.005,-17.344 39.104,-22.699 3.499,-1.451 5.973,-4.629 6.507,-8.363 l 10.795,-66.176 99.584,1.152 9.301,65.024 c 0.555,3.755 3.029,6.933 6.528,8.363 13.611,5.568 26.731,13.184 39.019,22.635 3.008,2.304 6.955,2.859 10.475,1.429 l 62.827,-23.701 48.939,84.672 c 0.448,0.832 0.363,1.771 -0.149,2.176 l -51.776,40.469 c -2.944,2.304 -4.48,5.995 -4.011,9.728 0.811,6.485 1.643,14.272 1.643,22.72 0,8.469 -0.832,16.235 -1.643,22.72 -0.469,3.712 1.067,7.424 4.011,9.728 l 51.712,40.448 c 0.553,0.448 0.66,1.408 0.318,2.005 z" d="m 496.659,312.128 -47.061,-36.8 c 0.619,-5.675 1.109,-12.309 1.109,-19.328 0,-7.019 -0.512,-13.653 -1.109,-19.328 l 47.104,-36.821 c 8.747,-6.912 11.157,-19.179 5.568,-29.397 L 453.331,85.782 C 447.976,76.033 435.966,71.574 425.022,75.606 L 369.491,97.899 C 358.867,90.219 347.71,83.734 336.168,78.55 L 327.72,19.649 C 326.334,8.448 316.606,0 305.107,0 h -98.133 c -11.499,0 -21.227,8.448 -22.592,19.435 l -8.469,59.115 c -11.179,5.056 -22.165,11.435 -33.28,19.371 L 86.953,75.564 C 76.308,71.404 64.19,75.799 58.857,85.569 l -49.003,84.8 c -5.781,9.771 -3.413,22.443 5.547,29.525 l 47.061,36.779 c -0.747,7.211 -1.109,13.461 -1.109,19.328 0,5.867 0.363,12.117 1.067,19.328 L 15.316,312.172 C 6.59,319.083 4.2,331.349 9.768,341.568 l 48.939,84.672 c 5.312,9.728 17.301,14.165 28.309,10.176 l 55.531,-22.293 c 10.624,7.659 21.803,14.144 33.344,19.349 l 8.448,58.88 c 1.387,11.2 11.115,19.648 22.613,19.648 h 98.133 c 11.499,0 21.227,-8.448 22.592,-19.435 l 8.469,-59.093 c 11.179,-5.056 22.165,-11.435 33.28,-19.371 l 55.68,22.357 c 10.603,4.117 22.763,-0.235 28.096,-10.005 l 49.195,-85.099 c 5.441,-9.983 3.051,-22.25 -5.738,-29.226 z m -12.907,18.773 -50.816,85.717 -61.077,-24.533 c -3.456,-1.387 -7.381,-0.853 -10.368,1.365 -13.227,9.899 -26.005,17.344 -39.104,22.699 -3.499,1.429 -5.995,4.608 -6.528,8.363 l -10.773,66.155 -99.563,-1.131 -9.323,-65.003 c -0.555,-3.755 -3.029,-6.933 -6.528,-8.363 -13.632,-5.589 -26.752,-13.205 -39.019,-22.635 -1.899,-1.472 -4.203,-2.219 -6.507,-2.219 -1.344,0 -2.688,0.235 -3.989,0.768 L 77.33,415.785 28.391,331.113 c -0.448,-0.832 -0.363,-1.792 0.149,-2.197 l 51.776,-40.469 c 2.944,-2.304 4.48,-6.016 4.011,-9.728 -1.131,-8.939 -1.643,-16.171 -1.643,-22.72 0,-6.549 0.533,-13.76 1.643,-22.72 0.469,-3.733 -1.067,-7.424 -4.011,-9.728 l -52.03,-42.431 50.816,-85.717 61.077,24.533 c 3.477,1.408 7.381,0.875 10.389,-1.365 13.205,-9.92 26.005,-17.344 39.104,-22.699 3.499,-1.451 5.973,-4.629 6.507,-8.363 l 10.795,-66.176 99.584,1.152 9.301,65.024 c 0.555,3.755 3.029,6.933 6.528,8.363 13.611,5.568 26.731,13.184 39.019,22.635 3.008,2.304 6.955,2.859 10.475,1.429 l 62.827,-23.701 48.939,84.672 c 0.448,0.832 0.363,1.771 -0.149,2.176 l -51.776,40.469 c -2.944,2.304 -4.48,5.995 -4.011,9.728 0.811,6.485 1.643,14.272 1.643,22.72 0,8.469 -0.832,16.235 -1.643,22.72 -0.469,3.712 1.067,7.424 4.011,9.728 l 51.712,40.448 c 0.553,0.448 0.66,1.408 0.318,2.005 z"
id="path1575" id="path1575"
inkscape:connector-curvature="0" inkscape:connector-curvature="0"
style="fill:#c87137;fill-opacity:1;stroke:#c87137;stroke-width:10.97066879;stroke-opacity:1" /> style="fill:#aa66d8;fill-opacity:1;stroke:#aa66d8;stroke-width:10.97066879;stroke-opacity:1" />
<path <path
d="m 256.019,149.333 c -58.816,0 -106.667,47.851 -106.667,106.667 0,58.816 47.851,106.667 106.667,106.667 58.816,0 106.667,-47.851 106.667,-106.667 0,-58.816 -47.851,-106.667 -106.667,-106.667 z m 0,192 c -47.061,0 -85.333,-38.272 -85.333,-85.333 0,-47.061 38.272,-85.333 85.333,-85.333 47.061,0 85.333,38.272 85.333,85.333 0,47.061 -38.272,85.333 -85.333,85.333 z" d="m 256.019,149.333 c -58.816,0 -106.667,47.851 -106.667,106.667 0,58.816 47.851,106.667 106.667,106.667 58.816,0 106.667,-47.851 106.667,-106.667 0,-58.816 -47.851,-106.667 -106.667,-106.667 z m 0,192 c -47.061,0 -85.333,-38.272 -85.333,-85.333 0,-47.061 38.272,-85.333 85.333,-85.333 47.061,0 85.333,38.272 85.333,85.333 0,47.061 -38.272,85.333 -85.333,85.333 z"
id="path1577" id="path1577"
inkscape:connector-curvature="0" inkscape:connector-curvature="0"
style="fill:#c87137;fill-opacity:1;stroke:#c87137;stroke-width:10.97066879;stroke-opacity:1" /> style="fill:#aa66d8;fill-opacity:1;stroke:#aa66d8;stroke-width:10.97066879;stroke-opacity:1" />
</g> </g>
</g> </g>
</g> </g>

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB