70 lines
3.6 KiB
XML

{
"id": "app",
"widgettype": "VBox",
"options": { "width": "100%", "height": "100%", "spacing": 0, "padding": "0" },
"subwidgets": [
{
"widgettype": "VideoPlayer",
"id": "video_player",
"options": { "width": "100%", "height": "100%", "bgcolor": "#000000" }
},
{
"widgettype": "VBox",
"options": { "width": "100%", "bgcolor": "#1a1a1a", "padding": "6px", "spacing": 4 },
"subwidgets": [
{
"widgettype": "HBox",
"options": { "width": "100%", "spacing": 6, "alignItems": "center" },
"subwidgets": [
{ "widgettype": "Text", "id": "time_current", "options": { "text": "00:00", "i18n": false } },
{ "widgettype": "ProgressSlider", "id": "progress_slider", "options": { "width": "100%" } },
{ "widgettype": "Text", "id": "time_total", "options": { "text": "00:00", "i18n": false } }
]
},
{
"widgettype": "HBox",
"options": { "width": "100%", "spacing": 4, "alignItems": "center" },
"subwidgets": [
{
"widgettype": "Button", "id": "btn_open_file",
"options": { "label": "📂 打开", "css": "text" },
"binds": [{ "wid": "self", "event": "click", "actiontype": "event", "target": "player.open_file" }]
},
{
"widgettype": "Button", "id": "btn_prev",
"options": { "label": "⏮", "css": "text" },
"binds": [{ "wid": "self", "event": "click", "actiontype": "event", "target": "player.prev" }]
},
{
"widgettype": "Button", "id": "btn_play",
"options": { "label": "▶️", "css": "text" },
"binds": [{ "wid": "self", "event": "click", "actiontype": "event", "target": "player.toggle" }]
},
{
"widgettype": "Button", "id": "btn_next",
"options": { "label": "⏭", "css": "text" },
"binds": [{ "wid": "self", "event": "click", "actiontype": "event", "target": "player.next" }]
},
{ "widgettype": "Filler" },
{
"widgettype": "Button", "id": "btn_track",
"options": { "label": "🎵 音轨", "css": "text" },
"binds": [{ "wid": "self", "event": "click", "actiontype": "event", "target": "player.show_tracks" }]
},
{
"widgettype": "Button", "id": "btn_repeat",
"options": { "label": "🔁 列表循环", "css": "text" },
"binds": [{ "wid": "self", "event": "click", "actiontype": "event", "target": "player.cycle_repeat" }]
},
{
"widgettype": "Button", "id": "btn_fullscreen",
"options": { "label": "⛶", "css": "text" },
"binds": [{ "wid": "self", "event": "click", "actiontype": "event", "target": "player.fullscreen" }]
}
]
}
]
}
]
}