Skip to content

Commit

Permalink
Ui improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedantfuley committed Nov 29, 2023
1 parent 17e05cf commit 273bd54
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Vanni_script/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,19 +194,23 @@ def __init__(self):
self.layout.addWidget(self.label, alignment=Qt.AlignCenter)

self.entry = QLineEdit(self)
self.layout.addWidget(self.entry)
self.entry.setFixedWidth(500)

self.entry.setStyleSheet("font-size: 16px; padding: 8px;")
self.layout.addWidget(self.entry, alignment=Qt.AlignCenter)

# Submit Button
self.button_submit = QPushButton("Submit", self)
self.button_submit.setStyleSheet("background-color: #4169E1; color: white; font-weight: bold;") # Royal Blue color
self.button_submit.setFixedHeight(30)
self.button_submit.setFixedWidth(150) # Fixed width
self.button_submit.clicked.connect(self.submit_data)
self.layout.addWidget(self.button_submit, alignment=Qt.AlignCenter)

# Browse Button
self.button_browse = QPushButton("Browse GIF", self)
self.button_browse.setStyleSheet("background-color: #FF6347; color: white; font-weight: bold;") # Tomato color
self.button_browse.setFixedWidth(150) # Fixed width
self.button_browse.setFixedWidth(140) # Fixed width
self.button_browse.clicked.connect(self.browse_gif)
self.layout.addWidget(self.button_browse, alignment=Qt.AlignCenter)

Expand Down Expand Up @@ -238,7 +242,8 @@ def __init__(self):
# Play/Pause Button
self.button_play_pause = QPushButton("Play/Pause", self)
self.button_play_pause.setStyleSheet("background-color: #FFD700; color: black; font-weight: bold;") # Gold color
self.button_play_pause.setFixedWidth(150) # Fixed width
self.button_play_pause.setFixedHeight(40)
self.button_play_pause.setFixedWidth(160) # Fixed width
self.button_play_pause.clicked.connect(self.toggle_animation)
self.layout.addWidget(self.button_play_pause, alignment=Qt.AlignCenter)

Expand Down

0 comments on commit 273bd54

Please sign in to comment.