aceinnolab / Inkycal

Create awesome e-paper dashboards within minutes! Modularity? Check! Python3? Check? Works on Raspberry Pi Zero W? Check! Support for own modules? Check!
https://aceinnolab.github.io/Inkycal/
GNU General Public License v3.0
1.16k stars 125 forks source link

[FEATURE]: xy-position for each module #352

Open EinKantHolz opened 4 months ago

EinKantHolz commented 4 months ago

Is your feature request related to a problem? Please describe. no

Describe the solution you'd like Like "size": [492,554], there should be an option to place the modules on specific coordinates. e.g. "pos":[482,560] or similar.

If one have a bigger screen with - lets say - 1000 px width and 1000 px length, one can set the size of the first module to 460 x 500 (w x l) and place it at 0|0. The second module is sized 540 x 450 (w x l) and placed at coordinates 460|25 (vertically centered to the first module).

Therefore, each module needs an origin. I would suggest the upper left corner. At the same time, overlapping must be prevented. One solution could be the "position" in the settings. Higher value means higher z-level, means in front of lower position-values.

aceisace commented 3 months ago

@EinKantHolz Hi there and thanks for your feature request. This is currently a limitation with Inkycal and I think this can be implemented, though it will take some time due to some refactoring. This has to be implemented in steps to ensure backward-compatibility:

Concerning vertical positioning, this is a feature for the next release. For the next release, modules will be representing widgets, which are offered in different sizes with different heights and widths, allowing multiple modules vertically