matrix icon indicating copy to clipboard operation
matrix copied to clipboard

Dynamic calculation of number of columns

Open akeyx opened this issue 8 months ago • 1 comments

In a scenario where this project is used as a screensaver (eg. via https://github.com/MarcelRichter-GitHub/HTMLWallpaper ) which it now works again in Plasma 6 the number of columns value should depend on the screensize. This matters in cases where you eg. have a laptop connected to a monitor most of the times but every now and then take the laptop on the road and use the laptop's screen. On the laptop's screen the number of columns may need to be smaller (in compare to the monitor which could be eg. 49" ultra wide one like the one I have). You want the glyph size to stay relatively the similar but the number of columns should change based on the size of the screen to preserve the ratio.

So rather than specifying the number of column you should just be able provide the size of each glyph or column and the code would calculate the number of columns needed to preserve the ratio.

akeyx avatar May 14 '25 13:05 akeyx

I see merits for both specifying the number of columns or specifying the physical width of a column. I'll plan to implement columnWidth soon.

Rezmason avatar May 16 '25 00:05 Rezmason