OsdItem: reverse icon if possible when using an RTL language

Reason for the change

The layout here is very strongly directional. That means when the layout reverses (i.e. when using an RTL language, the icon in the layout needs to reverse too if it has any strongly directional elements. This commit does that.

There are no visual changes when using an LTR language or when the current icon theme does not have RTL versions of the icon used here.

Test plan

  1. LANGUAGE=ar_AR plasmashell --replace
  2. Press a volume or microphone key on the keyboard

Screenshots or screen recordings

Reversed_in_the_OSD

Bugs fixed

CCBUG: 509598

Edited by Nate Graham

Merge request reports

Loading