mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-21 03:21:43 -06:00
More conditional formats: font style
The conditional format manager allows now to set the font style: bold, italic and underline. The project format has been updated. This is also the base for setting other font formats without further changing the project schema. New icons form the Silk icon set. See issue #1976 and #1815.
This commit is contained in:
@@ -438,9 +438,10 @@ void TableBrowser::updateFilter(int column, const QString& value)
|
||||
void TableBrowser::addCondFormat(int column, const QString& value)
|
||||
{
|
||||
// Create automatically a new conditional format with the next serial background color according to the theme and the regular foreground
|
||||
// color in the settings.
|
||||
// color and font in the settings.
|
||||
CondFormat newCondFormat(value, QColor(Settings::getValue("databrowser", "reg_fg_colour").toString()),
|
||||
m_condFormatPalette.nextSerialColor(Palette::appHasDarkTheme()),
|
||||
QFont(Settings::getValue("databrowser", "font").toString()),
|
||||
m_browseTableModel->encoding());
|
||||
m_browseTableModel->addCondFormat(column, newCondFormat);
|
||||
browseTableSettings[currentlyBrowsedTableName()].condFormats[column].push_back(newCondFormat);
|
||||
|
||||
Reference in New Issue
Block a user