mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-31 00:09:58 -06:00
New toolbars, new action icons and toolbar style preference
Two new application toolbars: Extra DB (attach, close database) and Project (Open, Save). Can be disabled and moved as usual. Icons for Close Database and Attach Database actions, which lacked ones. Different icon for the dock configuration, so they are visually distinguishable from the toolbar configurations. New preference for the toolbar style, with default value: text besides icon as before. But in order for the style to change, the value in UI must be ToolButtonIconOnly. Needed new icons from famfamfam.com's Silk collection. See related issue #331
This commit is contained in:
@@ -169,6 +169,7 @@ void PreferencesDialog::loadSettings()
|
||||
ui->listExtensions->addItems(Settings::getValue("extensions", "list").toStringList());
|
||||
ui->checkRegexDisabled->setChecked(Settings::getValue("extensions", "disableregex").toBool());
|
||||
fillLanguageBox();
|
||||
ui->toolbarStyleComboBox->setCurrentIndex(Settings::getValue("General", "toolbarStyle").toInt());
|
||||
}
|
||||
|
||||
void PreferencesDialog::saveSettings()
|
||||
@@ -271,6 +272,7 @@ void PreferencesDialog::saveSettings()
|
||||
tr("The language will change after you restart the application."));
|
||||
|
||||
Settings::setValue("General", "language", newLanguage);
|
||||
Settings::setValue("General", "toolbarStyle", ui->toolbarStyleComboBox->currentIndex());
|
||||
|
||||
accept();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user