Add drop shadow to placefile text

This commit is contained in:
Dan Paulat 2023-10-09 22:01:58 -05:00
parent cfa62d5fbc
commit 4916dfe85a
6 changed files with 68 additions and 20 deletions

View file

@ -102,7 +102,8 @@ public:
&updateNotificationsEnabled_,
&debugEnabled_,
&hoverTextWrap_,
&tooltipMethod_}}
&tooltipMethod_,
&placefileTextDropShadowEnabled_}}
{
// Configure default alert phenomena colors
auto& paletteSettings = settings::PaletteSettings::Instance();
@ -198,6 +199,7 @@ public:
settings::SettingsInterface<std::int64_t> hoverTextWrap_ {};
settings::SettingsInterface<std::string> tooltipMethod_ {};
settings::SettingsInterface<bool> placefileTextDropShadowEnabled_ {};
std::vector<settings::SettingsInterfaceBase*> settings_;
};
@ -808,6 +810,11 @@ void SettingsDialogImpl::SetupTextTab()
});
tooltipMethod_.SetEditWidget(self_->ui->tooltipMethodComboBox);
tooltipMethod_.SetResetButton(self_->ui->resetTooltipMethodButton);
placefileTextDropShadowEnabled_.SetSettingsVariable(
textSettings.placefile_text_drop_shadow_enabled());
placefileTextDropShadowEnabled_.SetEditWidget(
self_->ui->placefileTextDropShadowCheckBox);
}
QImage SettingsDialogImpl::GenerateColorTableImage(