do-it-yourself-bar
do-it-yourself-bar copied to clipboard
Allow horizontal alignment of text
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.
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
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.