Skip to content

Commit

Permalink
V2022.1.4
Browse files Browse the repository at this point in the history
- Added action color to buttons
  • Loading branch information
nlogozzo committed Jan 12, 2022
1 parent 35a593e commit 98dd197
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion UpdateConfig.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"LatestVersion":"2022.1.3","Changelog":"- Added subtitle to headerbar\n- Moved settings to help menu\n- Other UX improvements","LinkToExe":"https://github.com/nlogozzo/NickvisionTubeConverter/releases/download/2022.1.3/NickvisionTubeConverter"}
{"LatestVersion":"2022.1.4","Changelog":"- Added action color to buttons","LinkToExe":"https://github.com/nlogozzo/NickvisionTubeConverter/releases/download/2022.1.4/NickvisionTubeConverter"}
1 change: 1 addition & 0 deletions controls/headerbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ namespace NickvisionTubeConverter::Controls
m_lblRemoveAllQueuedDownloads.set_label("Are you sure you want to remove all downloads from the queue?");
m_lblRemoveAllQueuedDownloads.set_margin(4);
m_btnConfirmRemoveAllQueuedDownloads.set_label("Remove");
m_btnConfirmRemoveAllQueuedDownloads.get_style_context()->add_class("destructive-action");
m_btnCancelRemoveAllQueuedDownloads.set_label("Cancel");
m_btnCancelRemoveAllQueuedDownloads.signal_clicked().connect(sigc::mem_fun(m_popRemoveAllQueuedDownloads, &Gtk::Popover::popdown));
m_boxBtnsRemoveAllQueuedDownloads.set_homogeneous(true);
Expand Down
9 changes: 5 additions & 4 deletions views/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace NickvisionTubeConverter::Views
using namespace NickvisionTubeConverter::Models;
using namespace NickvisionTubeConverter::Controls;

MainWindow::MainWindow() : m_opened(false), m_updater("https://raw.githubusercontent.com/nlogozzo/NickvisionTubeConverter/main/UpdateConfig.json", { "2022.1.3" })
MainWindow::MainWindow() : m_opened(false), m_updater("https://raw.githubusercontent.com/nlogozzo/NickvisionTubeConverter/main/UpdateConfig.json", { "2022.1.4" })
{
//==Settings==//
set_default_size(800, 600);
Expand Down Expand Up @@ -138,7 +138,8 @@ namespace NickvisionTubeConverter::Views
{
Gtk::FileChooserDialog* folderDialog = new Gtk::FileChooserDialog(*this, "Select Save Folder", Gtk::FileChooserDialog::Action::SELECT_FOLDER, true);
folderDialog->set_modal(true);
folderDialog->add_button("_Select", Gtk::ResponseType::OK);
Gtk::Button* btnSelect = folderDialog->add_button("_Select", Gtk::ResponseType::OK);
btnSelect->get_style_context()->add_class("suggested-action");
folderDialog->add_button("_Cancel", Gtk::ResponseType::CANCEL);
folderDialog->signal_response().connect(sigc::bind([&](int response, Gtk::FileChooserDialog* dialog)
{
Expand Down Expand Up @@ -304,7 +305,7 @@ namespace NickvisionTubeConverter::Views
void MainWindow::changelog(const Glib::VariantBase& args)
{
Gtk::MessageDialog* changelogDialog = new Gtk::MessageDialog(*this, "What's New?", false, Gtk::MessageType::INFO, Gtk::ButtonsType::OK, true);
changelogDialog->set_secondary_text("\n- Added subtitle to headerbar\n- Moved settings to help menu\n- Other UX improvements");
changelogDialog->set_secondary_text("\n- Added action color to buttons");
changelogDialog->signal_response().connect(sigc::bind([](int response, Gtk::MessageDialog* dialog)
{
delete dialog;
Expand All @@ -319,7 +320,7 @@ namespace NickvisionTubeConverter::Views
aboutDialog->set_modal(true);
aboutDialog->set_hide_on_close(true);
aboutDialog->set_program_name("Nickvision Tube Converter");
aboutDialog->set_version("2022.1.3");
aboutDialog->set_version("2022.1.4");
aboutDialog->set_comments("An easy to use YouTube video downloader.");
aboutDialog->set_copyright("(C) Nickvision 2021-2022");
aboutDialog->set_license_type(Gtk::License::GPL_3_0);
Expand Down

0 comments on commit 98dd197

Please sign in to comment.