Skip to content

Commit

Permalink
Change the style of the Browse Buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
KorenMary committed Mar 17, 2024
1 parent 9a67bea commit 37e5aa5
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion src/client/dcp_client/gui/welcome_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,55 @@ def __init__(self, app: Application) -> None:
self.path_layout.addWidget(self.train_textbox)

self.file_open_button_val = QPushButton("Browse", self)
self.file_open_button_val.setFixedSize(80, 30)
self.file_open_button_val.setStyleSheet(
"""QPushButton
{
background-color: #3d81d1;
font-size: 11px;
font-weight: bold;
color: #ffffff;
border-radius: 5px;
padding: 8px 16px; }"""
"QPushButton:hover { background-color: #006FBA; }"
)
self.file_open_button_val.show()
self.file_open_button_val.clicked.connect(self.browse_eval_clicked)

self.file_open_button_prog = QPushButton("Browse", self)
self.file_open_button_prog.setFixedSize(80, 30)
self.file_open_button_prog.setStyleSheet(
"""QPushButton
{
background-color: #3d81d1;
font-size: 11px;
font-weight: bold;
color: #ffffff;
border-radius: 5px;
padding: 8px 16px; }"""
"QPushButton:hover { background-color: #006FBA; }"
)
self.file_open_button_prog.show()
self.file_open_button_prog.clicked.connect(self.browse_inprogr_clicked)


self.file_open_button_train = QPushButton("Browse", self)
self.file_open_button_train.setFixedSize(80, 30)
self.file_open_button_train.setStyleSheet(
"""QPushButton
{
background-color: #3d81d1;
font-size: 11px;
font-weight: bold;
color: #ffffff;
border-radius: 5px;
padding: 8px 16px; }"""
"QPushButton:hover { background-color: #006FBA; }"

)
self.file_open_button_train.show()
self.file_open_button_train.clicked.connect(self.browse_train_clicked)

self.button_layout.addWidget(self.file_open_button_val)
self.button_layout.addWidget(self.file_open_button_prog)
self.button_layout.addWidget(self.file_open_button_train)
Expand All @@ -143,7 +184,7 @@ def __init__(self, app: Application) -> None:
border-radius: 5px;
padding: 8px 16px; }"""
"QPushButton:hover { background-color: #7bc432; }"
"QPushButton:pressed { background-color: #7bc432; }"

)
self.start_button.show()
# check if we need to upload data to server
Expand Down

0 comments on commit 37e5aa5

Please sign in to comment.