mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 01:56:31 +03:00
Improve UICheckBox in different pixel densities.
Improve stylesheet units printing. Added `dpr` as device-pixel rounded stylesheet length unit. Fixes in 7GUIs Cells.
This commit is contained in:
@@ -1057,8 +1057,7 @@ void App::setUIScaleFactor() {
|
||||
i18n( "set_ui_scale_factor", "Set the UI scale factor (pixel density):\nMinimum value is "
|
||||
"1, and maximum 6. Requires restart." ) );
|
||||
msgBox->setTitle( mWindowTitle );
|
||||
msgBox->getTextInput()->setText(
|
||||
String::numberClean( String::format( "%.2f", mConfig.windowState.pixelDensity ) ) );
|
||||
msgBox->getTextInput()->setText( String::fromFloat( mConfig.windowState.pixelDensity ) );
|
||||
msgBox->setCloseShortcut( { KEY_ESCAPE, 0 } );
|
||||
msgBox->showWhenReady();
|
||||
msgBox->on( Event::OnConfirm, [this, msgBox]( const Event* ) {
|
||||
|
||||
Reference in New Issue
Block a user