Skip to content

Commit e782647

Browse files
committed
Added titles to each container and changed the styling
1 parent 0cb821e commit e782647

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

tui/components.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,14 @@ def _refresh_content(self) -> None:
260260

261261
def on_mount(self) -> None:
262262
"""Initialize default labels on mount."""
263-
self.module_text = "Module: "
264-
self.functionality_text = "Functionality:"
263+
self.module_text = "module: "
264+
self.functionality_text = "functionality:"
265265
self._refresh_content()
266266

267267
def compose(self):
268268
self.module_widget = Static(self.module_text, classes="rendering-info-row")
269269
self.functionality_widget = Static(self.functionality_text, classes="rendering-info-row")
270+
yield Static("module status", classes="rendering-info-title")
270271
with Vertical(classes="rendering-info-box"):
271272
yield self.module_widget
272273
yield self.functionality_widget
@@ -325,6 +326,7 @@ def on_mount(self) -> None:
325326
self._refresh_content()
326327

327328
def compose(self):
329+
yield Static("latest test scripts", classes="test-scripts-title")
328330
with Vertical(classes="test-scripts-box"):
329331
self.unit_widget = Static(self.unit_test_text, classes="test-script-row")
330332
self.conformance_widget = Static(self.conformance_test_text, classes="test-script-row")

tui/plain2code_tui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def compose(self) -> ComposeResult:
175175
with Vertical(id=TUIComponents.DASHBOARD_VIEW.value):
176176
with VerticalScroll():
177177
yield Static(
178-
"[#E0FF6E]*codeplain[/#E0FF6E] [#888888](v0.5.0)[/#888888]\n",
178+
"[#FFFFFF]*codeplain[/#FFFFFF] [#888888](v0.5.0)[/#888888]\n",
179179
id="codeplain-header",
180180
classes="codeplain-header",
181181
)

tui/styles.css

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ We might need those at some point, so just commenting them out for now.
3737
}
3838

3939
#render-status-widget {
40-
margin: 0 3;
4140
height: auto;
4241
}
4342

@@ -62,14 +61,19 @@ RenderingInfoBox {
6261

6362
.rendering-info-box {
6463
height: auto;
65-
border: solid #FFF;
64+
border: solid #E0FF6E;
6665
padding: 0 1;
6766
}
6867

6968
.rendering-info-row {
7069
color: #FFF;
7170
}
7271

72+
.rendering-info-title {
73+
color: #E0FF6E;
74+
margin-bottom: 0;
75+
}
76+
7377
ProgressItem {
7478
height: auto;
7579
}
@@ -121,10 +125,15 @@ TestScriptsContainer {
121125
.test-scripts-box {
122126
height: auto;
123127
color: #888;
124-
border: solid #FFF;
128+
border: solid #E0FF6E;
125129
padding: 0 1;
126130
}
127131

132+
.test-scripts-title {
133+
color: #E0FF6E;
134+
margin-bottom: 0;
135+
}
136+
128137
.test-script-row {
129138
color: #FFF;
130139
}

0 commit comments

Comments
 (0)