do-it-yourself-bar icon indicating copy to clipboard operation
do-it-yourself-bar copied to clipboard

Allow horizontal alignment of text

Open nagelp opened this issue 3 years ago • 2 comments

Currently text is always horizontally centered. I'd like to be able to left-align or right-align it in some situations. I tried <p align=left>...</p> but that didn't work.

nagelp avatar Apr 07 '22 21:04 nagelp

works for me

qdbus org.kde.plasma.doityourselfbar /id_666 org.kde.plasma.doityourselfbar.pass '|A|<td width="50" align="left">nya</td>|<p align="right">hi<br>wall</p>||'

note that a object aligned to the left/right/center needs a width wider than it's size or the placement will be the same for left/right/center

GM-Script-Writer-62850 avatar Nov 05 '22 13:11 GM-Script-Writer-62850

qdbus org.kde.plasma.doityourselfbar /id_666 org.kde.plasma.doityourselfbar.pass '|A|<td width="50" align="left">nya</td>|<p align="right">hi<br>wall</p>||'

The only downside is that you'll need to deal with block indicator styles a bit differently, because of the squared-corner nature of a table cell. Rounded corners will be a bit limited, but, yeah.. That's definitely an option. Maybe there's some workaround using CSS or even some table style regarding cell corners.

rizzini avatar Nov 05 '22 14:11 rizzini