mirror of
https://github.com/vicr123/theshell.git
synced 2025-01-23 12:12:06 -05:00
Fixed DPI settings
This commit is contained in:
parent
de68e95a8b
commit
e409a6cb10
1 changed files with 5 additions and 5 deletions
|
@ -339,7 +339,7 @@ InfoPaneDropdown::InfoPaneDropdown(WId MainWindowId, QWidget *parent) :
|
|||
ui->decorativeColorThemeRadio->setChecked(true);
|
||||
}
|
||||
|
||||
int dpi = sessionSettings->value("screen/dpi", 96).toInt();
|
||||
int dpi = settings.value("screen/dpi", 96).toInt();
|
||||
switch (dpi) {
|
||||
case 96:
|
||||
ui->dpi100->setChecked(true);
|
||||
|
@ -3238,28 +3238,28 @@ void InfoPaneDropdown::updateAccentColourBox() {
|
|||
void InfoPaneDropdown::on_dpi100_toggled(bool checked)
|
||||
{
|
||||
if (checked) {
|
||||
settings->setValue("screen/dpi", 96);
|
||||
settings.setValue("screen/dpi", 96);
|
||||
}
|
||||
}
|
||||
|
||||
void InfoPaneDropdown::on_dpi150_toggled(bool checked)
|
||||
{
|
||||
if (checked) {
|
||||
settings->setValue("screen/dpi", 144);
|
||||
settings.setValue("screen/dpi", 144);
|
||||
}
|
||||
}
|
||||
|
||||
void InfoPaneDropdown::on_dpi200_toggled(bool checked)
|
||||
{
|
||||
if (checked) {
|
||||
settings->setValue("screen/dpi", 192);
|
||||
settings.setValue("screen/dpi", 192);
|
||||
}
|
||||
}
|
||||
|
||||
void InfoPaneDropdown::on_dpi300_toggled(bool checked)
|
||||
{
|
||||
if (checked) {
|
||||
settings->setValue("screen/dpi", 288);
|
||||
settings.setValue("screen/dpi", 288);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue