How to remove button size increase when pressed

As standart, added button widgets do increase their size when beeing pressed.

I cannot find setting in squareline.

What do you want to achieve?

buttons shall not increase in size when pressed

What have you tried so far?

set button state to PRESSED, but no activated settings can be found in transform, padding or outline

Others

  • SquareLine Studio version: V1.5.0
  • Operating system: Win11
  • Target hardware: Custom

Figured out, that this comes from LV_THEME_DEFAULT_GROW define in lvgl config file.

1 Like

Hi, The button increases in size when pressed because you selected the light LVGL theme when creating the project, which includes this style transition. If you don’t want to use an LVGL-specific theme, you should select the Simplified theme when creating your project.

Im facing the same issue. How to change the setting in Squareline studio if the project is already created? I could not re-build all the screens/widgets which is too time consuming. Thanks!

Hi, unfortunately, you can’t change this setting directly in SquareLine Studio for an already created project. What you can do is edit the .slb file manually - at the end of the file, find the part that says "theme_simplified": false and change it to "theme_simplified": true.

After this change, your project will load with the Simplified theme instead. Just be aware that since the original LVGL light and dark themes have many built-in style settings, you’ll likely need to adjust paddings, corner rounding, and other styles in your project afterward.