Skip to content

Commit 134a58b

Browse files
committed
squashme: Tweaks and cleanup
1 parent 515b431 commit 134a58b

File tree

10 files changed

+145
-49
lines changed

10 files changed

+145
-49
lines changed

frontend/components/FlowFrame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void FlowFrame::keyPressEvent(QKeyEvent *event)
6262
case Qt::Key_Down:
6363
case Qt::Key_Left:
6464
case Qt::Key_Up: {
65-
/* Find next widget in the given direction */
65+
// Find next widget in the given direction
6666
int bestDistance = INT_MAX;
6767
for (int i = 0; i < layout->count(); ++i) {
6868
if (i == index) {

frontend/components/SourceSelectButton.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ SourceSelectButton::SourceSelectButton(obs_source_t *source_, QWidget *parent) :
7171
button->setFixedSize(width(), height());
7272
button->move(0, 0);
7373

74+
setFocusPolicy(Qt::StrongFocus);
7475
setFocusProxy(button);
7576

7677
connect(button, &QAbstractButton::pressed, this, &SourceSelectButton::buttonPressed);

frontend/data/themes/Yami_Acri.ovt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,14 @@ QCalendarWidget QToolButton:pressed {
229229
QCalendarWidget QSpinBox {
230230
background-color: var(--primary_dark);
231231
}
232+
233+
/* Add Source Dialog */
234+
SourceSelectButton QPushButton,
235+
SourceSelectButton #thumbnail {
236+
border-color: var(--grey3);
237+
}
238+
239+
SourceSelectButton QPushButton:checked {
240+
background: var(--button_bg_red);
241+
border-color: var(--button_bg_red_hover);
242+
}

frontend/data/themes/Yami_Classic.ovt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
--primary: rgb(25,52,76);
2424
--primary_light: rgb(33,71,109);
25+
--primary_dark: rgb(19, 40, 58);
2526

2627
/* Layout */
2728
--padding_large: min(max(0px, calc(1px * var(--padding_base_value))), 5px);
@@ -83,6 +84,13 @@
8384
--padding_menu_y: calc(3px + calc(1 * var(--padding_base_value)));
8485
}
8586

87+
/* --------------------- */
88+
/* General Styling Hints */
89+
90+
.dialog-frame {
91+
background: var(--bg_window);
92+
}
93+
8694
QStatusBar {
8795
background-color: var(--bg_window);
8896
}
@@ -303,3 +311,8 @@ VolumeMeter {
303311
OBSBasicStats {
304312
background: var(--bg_window);
305313
}
314+
315+
/* Add Source Dialog */
316+
SourceSelectButton QPushButton {
317+
background-color: var(--grey7);
318+
}

frontend/data/themes/Yami_Light.ovt

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@
1010
--grey1: rgb(140,140,140);
1111
--grey2: rgb(254,254,254);
1212
--grey3: rgb(254,254,254);
13-
--grey4: rgb(243,243,243);
13+
--grey4: rgb(245,245,245);
1414
--grey5: rgb(236,236,236);
1515
--grey6: rgb(229,229,229);
1616
--grey7: rgb(211,211,211);
1717
--grey8: rgb(193,193,193);
1818

1919
--primary: rgb(140,181,255);
2020
--primary_light: rgb(178,207,255);
21-
--primary_dark: rgb(22,31,65);
21+
--primary_dark: rgb(122, 164, 243);
2222

2323
--bg_window: var(--grey7);
2424
--bg_base: var(--grey6);
2525
--bg_preview: var(--grey8);
2626

27-
--text: var(--black1);
27+
--text: #030303
2828
--text_light: var(--black3);
2929
--text_muted: var(--black4);
3030

@@ -34,7 +34,10 @@
3434
--input_bg_hover: var(--grey3);
3535
--input_bg_focus: var(--grey3);
3636

37+
--input_border_hover: var(--black5);
38+
3739
--button_bg_disabled: var(--grey7);
40+
--button_border_hover: var(--black5);
3841

3942
--separator_hover: var(--black1);
4043

@@ -44,6 +47,13 @@
4447
--scrollbar_border: var(--grey7);
4548
}
4649

50+
/* --------------------- */
51+
/* General Styling Hints */
52+
53+
.button-primary:hover {
54+
border-color: var(--button_border_hover);
55+
}
56+
4757
VolumeMeter {
4858
qproperty-backgroundNominalColor: rgb(66,112,24);
4959
qproperty-backgroundWarningColor: rgb(112,91,28);
@@ -324,3 +334,19 @@ QCalendarWidget #qt_calendar_prevmonth {
324334
QCalendarWidget #qt_calendar_nextmonth {
325335
qproperty-icon: url(theme:Light/right.svg);
326336
}
337+
338+
/* Add Source Dialog */
339+
SourceSelectButton QPushButton,
340+
SourceSelectButton #thumbnail {
341+
border-color: var(--grey3);
342+
}
343+
344+
SourceSelectButton QPushButton:checked {
345+
background: var(--primary);
346+
border-color: var(--primary_light);
347+
}
348+
349+
SourceSelectButton QPushButton:checked:focus,
350+
SourceSelectButton QPushButton:focus {
351+
border-color: var(--black3);
352+
}

frontend/data/themes/Yami_Rachni.ovt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,3 +233,9 @@ VolumeMeter {
233233
qproperty-majorTickColor: palette(window-text);
234234
qproperty-minorTickColor: palette(mid);
235235
}
236+
237+
/* Add Source Dialog */
238+
SourceSelectButton QPushButton,
239+
SourceSelectButton #thumbnail {
240+
border-color: var(--grey3);
241+
}

0 commit comments

Comments
 (0)