Skip to content

Commit 9f52094

Browse files
committed
Fix RMLui RCSS loading and font-family issues
Fixed two critical RMLui issues: 1. **RCSS file loading errors**: - Copied common.css from LuaUI/rmlui to scen_edit/view/rml/ - Fixed relative paths in all RML files to correctly reference RCSS files - springboard_main.rml: href="springboard.rcss" → href="../rcss/springboard.rcss" - generic_editor.rml: href="editor.rcss" → href="../rcss/editor.rcss" - Floating RML files: href="../floating.rcss" → href="../../rcss/floating.rcss" - Field RML files: href="../dialog.rcss" → href="../../rcss/dialog.rcss" - Added common.css link to all RML files for scrollbar styling 2. **Missing font-family warnings**: - Added font-family: Poppins to all RCSS files: - floating.rcss (.floating-panel) - editor.rcss (.editor-panel) - dialog.rcss (.dialog) - fields.rcss (.asset-browser) - springboard.rcss already had font-family defined All RML documents now load their RCSS files correctly and have proper font definitions.
1 parent 51fb3e0 commit 9f52094

File tree

14 files changed

+63
-9
lines changed

14 files changed

+63
-9
lines changed

scen_edit/view/rcss/dialog.rcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* Dialog Styles */
22

33
.dialog {
4+
font-family: Poppins;
45
position: absolute;
56
background-color: #2a2a2a;
67
border: 2dp #555555;

scen_edit/view/rcss/editor.rcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* Editor Panel Styles */
22

33
.editor-panel {
4+
font-family: Poppins;
45
position: absolute;
56
width: 100%;
67
height: 100%;

scen_edit/view/rcss/fields.rcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
/* Asset Picker */
44
.asset-browser {
5+
font-family: Poppins;
56
display: flex;
67
flex-direction: column;
78
gap: 10dp;

scen_edit/view/rcss/floating.rcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* Floating Window Styles */
22

33
.floating-panel {
4+
font-family: Poppins;
45
background-color: #2a2a2a;
56
border: 1dp #555555;
67
padding: 5dp;

scen_edit/view/rml/common.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/* Hide horizontal scrollbar entirely */
2+
scrollbarhorizontal,
3+
scrollbarhorizontal slidertrack,
4+
scrollbarhorizontal sliderbar,
5+
scrollbarhorizontal sliderarrowdec,
6+
scrollbarhorizontal sliderarrowinc {
7+
display: none;
8+
}
9+
10+
/* Vertical scrollbar container */
11+
scrollbarvertical {
12+
width: 10dp; /* visible gutter */
13+
background-color: #1c1d20;
14+
}
15+
16+
/* Remove arrow buttons (optional, keeps things minimal) */
17+
scrollbarvertical sliderarrowdec,
18+
scrollbarvertical sliderarrowinc {
19+
width: 0dp;
20+
height: 0dp;
21+
}
22+
23+
/* Track + thumb (bar) */
24+
scrollbarvertical slidertrack {
25+
margin-left: 1dp; /* center the 8dp bar inside the 10dp gutter */
26+
width: 8dp;
27+
background-color: #121315;
28+
}
29+
30+
scrollbarvertical sliderbar {
31+
width: 8dp;
32+
min-height: 20dp; /* ensure it’s visible & draggable */
33+
background-color: #44484e;
34+
border: 1dp #2a2b2e;
35+
cursor: pointer;
36+
}
37+
38+
scrollbarvertical sliderbar:hover {
39+
background-color: #5fc878;
40+
}
41+

scen_edit/view/rml/fields/asset_picker.rml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<rml>
22
<head>
33
<title>Asset Picker</title>
4-
<link type="text/rcss" href="../dialog.rcss"/>
4+
<link rel="stylesheet" type="text/rcss" href="../common.css" />
5+
<link type="text/rcss" href="../../rcss/dialog.rcss"/>
56
</head>
67
<body id="asset-picker" class="dialog large-dialog">
78
<div class="dialog-header">

scen_edit/view/rml/fields/color_picker.rml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<rml>
22
<head>
33
<title>Color Picker</title>
4-
<link type="text/rcss" href="../dialog.rcss"/>
4+
<link rel="stylesheet" type="text/rcss" href="../common.css" />
5+
<link type="text/rcss" href="../../rcss/dialog.rcss"/>
56
</head>
67
<body id="color-picker" class="dialog">
78
<div class="dialog-header">

scen_edit/view/rml/fields/material_picker.rml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<rml>
22
<head>
33
<title>Material Picker</title>
4-
<link type="text/rcss" href="../dialog.rcss"/>
4+
<link rel="stylesheet" type="text/rcss" href="../common.css" />
5+
<link type="text/rcss" href="../../rcss/dialog.rcss"/>
56
</head>
67
<body id="material-picker" class="dialog large-dialog">
78
<div class="dialog-header">

scen_edit/view/rml/floating/command_window.rml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<rml>
22
<head>
33
<title>Command Window</title>
4-
<link type="text/rcss" href="../floating.rcss"/>
4+
<link rel="stylesheet" type="text/rcss" href="../common.css" />
5+
<link type="text/rcss" href="../../rcss/floating.rcss"/>
56
</head>
67
<body id="command-window" class="floating-panel">
78
<div class="command-toolbar">

scen_edit/view/rml/floating/control_buttons.rml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<rml>
22
<head>
33
<title>Control Buttons</title>
4-
<link type="text/rcss" href="../floating.rcss"/>
4+
<link rel="stylesheet" type="text/rcss" href="../common.css" />
5+
<link type="text/rcss" href="../../rcss/floating.rcss"/>
56
</head>
67
<body id="control-buttons" class="floating-panel">
78
<button id="btn-start-stop" class="control-button large" title="Start scenario">▶</button>

0 commit comments

Comments
 (0)