fix(ui): adapt icon position labels based on bar orientation

- Add barIsVertical property to BarWidgetSettingsDialog
- Pass barIsVertical from NSectionEditor to dialog
- Show Top/Bottom for vertical bar, Left/Right for horizontal bar
- Keep fallback to oppositeDirection when iconPosition not set
- Fix BarPillVertical iconPosition mapping (left=top, right=bottom)
This commit is contained in:
loner
2026-04-06 07:12:49 +08:00
parent 36a9d7afee
commit b6a85d88e7
5 changed files with 23 additions and 4 deletions
+2 -1
View File
@@ -267,7 +267,8 @@ NBox {
"widgetData": widgetData,
"widgetId": widgetData.id,
"sectionId": root.sectionId,
"screen": root.screen
"screen": root.screen,
"barIsVertical": root.barIsVertical
});
if (dialog) {