summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index a1df2609..aacb5f9b 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1056,10 +1056,12 @@ void draw_Window(iWindow *d) {
1056 }, uiSeparator_ColorId); 1056 }, uiSeparator_ColorId);
1057 } 1057 }
1058 if (root == d->keyRoot) { 1058 if (root == d->keyRoot) {
1059 const iBool isDark = isDark_ColorTheme(colorTheme_App());
1059 fillRect_Paint(&p, (iRect){ 1060 fillRect_Paint(&p, (iRect){
1060 topLeft_Rect(bounds), 1061 topLeft_Rect(bounds),
1061 init_I2(width_Rect(bounds), gap_UI / 2) 1062 init_I2(width_Rect(bounds), gap_UI / 2)
1062 }, uiBackgroundSelected_ColorId); 1063 }, isDark ? uiBackgroundSelected_ColorId
1064 : uiIcon_ColorId);
1063 } 1065 }
1064 } 1066 }
1065 } 1067 }
@@ -1197,6 +1199,7 @@ void setSplitMode_Window(iWindow *d, int splitFlags) {
1197 iForEach(ObjectList, i, tabs) { 1199 iForEach(ObjectList, i, tabs) {
1198 setRoot_Widget(i.object, d->roots[0]); 1200 setRoot_Widget(i.object, d->roots[0]);
1199 } 1201 }
1202 setFocus_Widget(NULL);
1200 delete_Root(d->roots[1]); 1203 delete_Root(d->roots[1]);
1201 d->roots[1] = NULL; 1204 d->roots[1] = NULL;
1202 d->keyRoot = d->roots[0]; 1205 d->keyRoot = d->roots[0];