various minor adjustments

This commit is contained in:
itsmattkc
2019-09-26 04:25:49 +10:00
parent f52c60c26e
commit 3f65441dc8
6 changed files with 24 additions and 1 deletions
@@ -81,6 +81,7 @@ PreferencesGeneralTab::PreferencesGeneralTab()
// General -> Default Sequence Settings
QPushButton* default_sequence_settings = new QPushButton(tr("Default Sequence Settings"));
default_sequence_settings->setEnabled(false);
connect(default_sequence_settings, SIGNAL(clicked(bool)), this, SLOT(edit_default_sequence_settings()));
misc_general->addWidget(default_sequence_settings);
+5
View File
@@ -18,6 +18,11 @@
***/
/* Hack that forces checked QPushButtons to use dark color */
QPushButton:checked {
background: #191919;
}
/* Node styling */
NodeViewItemWidget {
qproperty-titlebarColor: #4040a0;
+2 -1
View File
@@ -14,4 +14,5 @@ Window=#D0D0D0
WindowText=#000000
[Disabled]
ButtonText=#D0D0D0
ButtonText=#808080
Text=#808080
+3
View File
@@ -18,6 +18,9 @@
***/
/* Hack that forces checked QPushButtons to use dark color */
/* Node styling */
NodeViewItemWidget {
qproperty-titlebarColor: #a0a0ff;
+8
View File
@@ -193,6 +193,7 @@ MainMenu::MainMenu(QMainWindow *parent) :
// WINDOW MENU
//
window_menu_ = new Menu(this, this, SLOT(WindowMenuAboutToShow()));
connect(window_menu_, SIGNAL(aboutToHide()), this, SLOT(WindowMenuAboutToHide()));
window_menu_separator_ = window_menu_->addSeparator();
window_maximize_panel_item_ = window_menu_->AddItem("maximizepanel", parent, SLOT(ToggleMaximizedPanel()), "`");
window_lock_layout_item_ = window_menu_->AddItem("lockpanels", olive::panel_manager, SLOT(SetPanelsLocked(bool)));
@@ -363,6 +364,13 @@ void MainMenu::WindowMenuAboutToShow()
window_lock_layout_item_->setChecked(olive::panel_manager->ArePanelsLocked());
}
void MainMenu::WindowMenuAboutToHide()
{
while (window_menu_->actions().first() != window_menu_separator_) {
window_menu_->removeAction(window_menu_->actions().first());
}
}
void MainMenu::ZoomInTriggered()
{
olive::panel_manager->CurrentlyFocused()->ZoomIn();
+5
View File
@@ -72,6 +72,11 @@ private slots:
*/
void WindowMenuAboutToShow();
/**
* @brief Slot triggered just before the Window menu hides
*/
void WindowMenuAboutToHide();
/**
* @brief Slot for zooming in
*