applets/keyboardlayout: re-introduce "label+flag" display style option
requested to merge ngraham/plasma-desktop:re-introduce-label-and-flag-optionfor-keyboard-layout-widget into master
This feature got lost in the QML port and is re-added here.
The old version of the feature drew the label on top of the flag with no background, thereby making the label appear invisible for certain flags. To alleviate this, the new implementation draws the label on a badge in the corner, like the Battery & Brightness widget does.
Because this changes the format of the setting that controls the display style (going from a bool to an enum), an update script is provided to migrate people's old settings as needed.
BUG: 444864 FIXED-IN: 5.26
Depends on plasma-workspace!2092 (merged).
I'd like to request a soft feature freeze exception and ship this for Plasma 5.26, assuming it makes it through review in time. cc @jriddell about that.