Skip to content

Commit

Permalink
Improve css of buttons, fix colors in status
Browse files Browse the repository at this point in the history
  • Loading branch information
algorys committed Mar 4, 2018
1 parent 8b19369 commit 3ecb22a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
4 changes: 2 additions & 2 deletions alignak_app/qobjects/dock/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ def get_buttons_widget(self):
widget.setLayout(layout)

ok_btn = QPushButton(_('OK'))
ok_btn.setObjectName('valid')
ok_btn.setObjectName('search')
ok_btn.setFixedSize(120, 30)
ok_btn.clicked.connect(self.app_widget.close)
layout.addWidget(ok_btn)

refresh_btn = QPushButton(_('Refresh'))
refresh_btn.setObjectName('search')
refresh_btn.setObjectName('ok')
refresh_btn.setFixedSize(120, 30)
refresh_btn.clicked.connect(self.update_dialog)
layout.addWidget(refresh_btn)
Expand Down
2 changes: 1 addition & 1 deletion alignak_app/qobjects/dock/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def get_token_widget(self):
# Login button
accept_btn = QPushButton('OK', self)
accept_btn.clicked.connect(self.accept)
accept_btn.setObjectName('search')
accept_btn.setObjectName('ok')
accept_btn.setMinimumHeight(30)
token_layout.addWidget(accept_btn)

Expand Down
2 changes: 1 addition & 1 deletion alignak_app/qobjects/dock/user_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def get_notifications_widget(self, item_type, options):
# Login button
accept_btn = QPushButton(_('OK'), self)
accept_btn.clicked.connect(self.accept)
accept_btn.setObjectName('search')
accept_btn.setObjectName('ok')
accept_btn.setMinimumHeight(30)
options_layout.addWidget(accept_btn, line, 0, 1, 2)

Expand Down
2 changes: 1 addition & 1 deletion alignak_app/qobjects/panel/problems.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_problems_widget_title(self):
layout_title.addWidget(self.problems_title)

refresh_btn = QPushButton(_('Refresh'))
refresh_btn.setObjectName('search')
refresh_btn.setObjectName('ok')
refresh_btn.setFixedSize(120, 30)
refresh_btn.clicked.connect(self.update_problems_data)
layout_title.addWidget(refresh_btn)
Expand Down
17 changes: 17 additions & 0 deletions etc/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,23 @@ QTabBar::tab::selected {
border-style: solid;
}

QPushButton#ok {
color: #3884c3;
background-color: white;
outline: none;
border-radius: 0px;
border: 1px solid #3884c3;
padding-left: 5px;
padding-right: 5px;
font: 10pt;
}

QPushButton#ok:hover {
background-color: #3884c3;
color: white;
border: 1px solid #3884c3;
}

QPushButton#search {
color: #3884c3;
background-color: white;
Expand Down

0 comments on commit 3ecb22a

Please sign in to comment.