Skip to content

Commit

Permalink
Initial shutdown button implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodmg committed Nov 20, 2023
1 parent f15ab45 commit 443f472
Show file tree
Hide file tree
Showing 53 changed files with 323 additions and 194 deletions.
Binary file modified assets/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/balanceHandle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/balanceHandle_p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/eq_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/eq_off_p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/eq_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/eq_on_p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logoButton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/next.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/next_p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/open_p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/pause.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/pause_p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/pl_add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/pl_add_p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/pl_close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/pl_close_p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/pl_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/pl_off_p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/pl_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/pl_on_p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/play_p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/posHandle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/posHandle_p.png
Binary file modified assets/prev.png
Binary file modified assets/prev_p.png
Binary file modified assets/repeat_off.png
Binary file modified assets/repeat_off_p.png
Binary file modified assets/repeat_on.png
Binary file modified assets/repeat_on_p.png
Binary file modified assets/scroll_handle.png
Binary file modified assets/scroll_handle_p.png
Binary file modified assets/shuffle_off.png
Binary file modified assets/shuffle_off_p.png
Binary file modified assets/shuffle_on.png
Binary file modified assets/shuffle_on_p.png
Binary file modified assets/status_paused.png
Binary file modified assets/status_playing.png
Binary file modified assets/status_stopped.png
Binary file modified assets/stop.png
Binary file modified assets/stop_p.png
Binary file modified assets/visualizationBackground.png
Binary file modified assets/volumeHandle.png
Binary file modified assets/volumeHandle_p.png
11 changes: 11 additions & 0 deletions controlbuttonswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ControlButtonsWidget::ControlButtonsWidget(QWidget *parent) :
connect(ui->openButton, &QPushButton::clicked, this, &ControlButtonsWidget::openClicked);
connect(ui->repeatButton, &QCheckBox::clicked, this, &ControlButtonsWidget::repeatClicked);
connect(ui->shuffleButton, &QCheckBox::clicked, this, &ControlButtonsWidget::shuffleClicked);
connect(ui->logoButton, &QCheckBox::clicked, this, &ControlButtonsWidget::logoClicked);
}

ControlButtonsWidget::~ControlButtonsWidget()
Expand Down Expand Up @@ -70,6 +71,16 @@ void ControlButtonsWidget::scale()
ui->repeatButton->setMinimumHeight(ui->repeatButton->minimumHeight() * UI_SCALE);
ui->repeatButton->setStyleSheet(getStylesheet("controlbuttonswidget.repeatButton"));

ui->logoButton->setMaximumWidth(ui->logoButton->maximumWidth() * UI_SCALE);
ui->logoButton->setMinimumWidth(ui->logoButton->minimumWidth() * UI_SCALE);
ui->logoButton->setMaximumHeight(ui->logoButton->maximumHeight() * UI_SCALE);
ui->logoButton->setMinimumHeight(ui->logoButton->minimumHeight() * UI_SCALE);

ui->playControlsContainer->setMaximumWidth(ui->playControlsContainer->maximumWidth() * UI_SCALE);
ui->playControlsContainer->setMinimumWidth(ui->playControlsContainer->minimumWidth() * UI_SCALE);
ui->playControlsContainer->setMaximumHeight(ui->playControlsContainer->maximumHeight() * UI_SCALE);
ui->playControlsContainer->setMinimumHeight(ui->playControlsContainer->minimumHeight() * UI_SCALE);

this->setMaximumWidth(this->maximumWidth() * UI_SCALE);
this->setMinimumWidth(this->minimumWidth() * UI_SCALE);
this->setMaximumHeight(this->maximumHeight() * UI_SCALE);
Expand Down
1 change: 1 addition & 0 deletions controlbuttonswidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class ControlButtonsWidget : public QWidget
void openClicked();
void repeatClicked(bool checked);
void shuffleClicked(bool checked);
void logoClicked();
};

#endif // CONTROLBUTTONSWIDGET_H
Loading

0 comments on commit 443f472

Please sign in to comment.