Skip to content

Commit

Permalink
Replace "search" css by "valid" for QPushButtons
Browse files Browse the repository at this point in the history
Ref #261
  • Loading branch information
algorys committed Mar 5, 2018
1 parent afda33d commit ea8a07d
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions alignak_app/qobjects/common/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def initialize(self, item_type, item_name, comment): # pylint: disable=too-many

request_btn = QPushButton(_('REQUEST ACKNOWLEDGE'), self)
request_btn.clicked.connect(self.accept)
request_btn.setObjectName('search')
request_btn.setObjectName('valid')
request_btn.setMinimumHeight(30)
request_btn.setDefault(True)
ack_layout.addWidget(request_btn, 8, 0, 1, 2)
Expand Down Expand Up @@ -453,7 +453,7 @@ def initialize(self, item_type, item_name, comment): # pylint: disable=too-many

request_btn = QPushButton(_('REQUEST DOWNTIME'), self)
request_btn.clicked.connect(self.handle_accept)
request_btn.setObjectName('search')
request_btn.setObjectName('valid')
request_btn.setMinimumHeight(30)
request_btn.setDefault(True)
downtime_layout.addWidget(request_btn, 10, 0, 1, 3)
Expand Down
2 changes: 1 addition & 1 deletion alignak_app/qobjects/dock/password.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def initialize(self):
# Accept button
accept_btn = QPushButton('Confirm', self)
accept_btn.clicked.connect(self.handle_confirm)
accept_btn.setObjectName('search')
accept_btn.setObjectName('valid')
accept_btn.setMinimumHeight(30)
pass_layout.addWidget(accept_btn)

Expand Down
2 changes: 1 addition & 1 deletion alignak_app/qobjects/dock/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_buttons_widget(self):
widget.setLayout(layout)

ok_btn = QPushButton(_('OK'))
ok_btn.setObjectName('search')
ok_btn.setObjectName('valid')
ok_btn.setFixedSize(120, 30)
ok_btn.clicked.connect(self.app_widget.close)
layout.addWidget(ok_btn)
Expand Down
2 changes: 1 addition & 1 deletion alignak_app/qobjects/dock/user_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_user_notes_widget(self):
# Accept button
accept_btn = QPushButton(_('Confirm'), self)
accept_btn.clicked.connect(self.accept_notes)
accept_btn.setObjectName('search')
accept_btn.setObjectName('valid')
accept_btn.setMinimumHeight(30)
notes_layout.addWidget(accept_btn)

Expand Down
2 changes: 1 addition & 1 deletion alignak_app/qobjects/login/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def create_widget(self):
# Login button
login_button = QPushButton(_('LOGIN'), self)
login_button.clicked.connect(self.accept)
login_button.setObjectName('search')
login_button.setObjectName('valid')
login_button.setMinimumHeight(30)
login_button.setDefault(True)
login_layout.addWidget(login_button, 6, 0, 1, 2)
Expand Down
2 changes: 1 addition & 1 deletion alignak_app/qobjects/login/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def initialize_dialog(self):

# Valid Button
valid_btn = QPushButton(_('Valid'))
valid_btn.setObjectName('search')
valid_btn.setObjectName('valid')
valid_btn.setMinimumHeight(30)
valid_btn.clicked.connect(self.accept)
server_layout.addWidget(valid_btn)
Expand Down
4 changes: 2 additions & 2 deletions alignak_app/qobjects/panel/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def get_search_widget(self):

# Search label
search_lbl = QLabel(_('Search Host'))
search_lbl.setObjectName('search')
search_lbl.setObjectName('bordertitle')
search_lbl.setFixedHeight(25)
search_lbl.setToolTip(_('Search Host'))
layout.addWidget(search_lbl)
Expand All @@ -158,7 +158,7 @@ def get_search_widget(self):
layout.addWidget(self.line_search)

self.spy_button.setIcon(QIcon(settings.get_image('spy')))
self.spy_button.setObjectName('search')
self.spy_button.setObjectName('valid')
self.spy_button.setFixedSize(110, 25)
self.spy_button.clicked.connect(self.spy_host)
layout.addWidget(self.spy_button)
Expand Down
8 changes: 4 additions & 4 deletions etc/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ QLabel#total {
border-radius: 3px;
}

QLabel#search {
QLabel#bordertitle {
color: #3884c3;
background-color: white;
border: 1px solid #3884c3;
Expand Down Expand Up @@ -263,7 +263,7 @@ QPushButton#ok:hover {
border: 1px solid #3884c3;
}

QPushButton#search {
QPushButton#valid {
color: #3884c3;
background-color: white;
outline: none;
Expand All @@ -274,13 +274,13 @@ QPushButton#search {
font: 10pt;
}

QPushButton#search:hover {
QPushButton#valid:hover {
background-color: #39aa56;
color: white;
border: 1px solid #39aa56;
}

QPushButton#search:disabled {
QPushButton#valid:disabled {
background-color: #39aa56;
color: white;
border: 1px solid #39aa56;
Expand Down

0 comments on commit ea8a07d

Please sign in to comment.