mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-21 06:33:22 +00:00
More fixes for themes
This commit is contained in:
parent
561870dc25
commit
aa9d097d11
@ -822,6 +822,12 @@ void AbstractChoiceWithValueDisplay::Draw(UIContext &dc) {
|
|||||||
if (!IsEnabled()) {
|
if (!IsEnabled()) {
|
||||||
style = dc.theme->itemDisabledStyle;
|
style = dc.theme->itemDisabledStyle;
|
||||||
}
|
}
|
||||||
|
if (HasFocus()) {
|
||||||
|
style = dc.theme->itemFocusedStyle;
|
||||||
|
}
|
||||||
|
if (down_) {
|
||||||
|
style = dc.theme->itemDownStyle;
|
||||||
|
}
|
||||||
int paddingX = 12;
|
int paddingX = 12;
|
||||||
dc.SetFontStyle(dc.theme->uiFont);
|
dc.SetFontStyle(dc.theme->uiFont);
|
||||||
|
|
||||||
|
@ -687,8 +687,15 @@ EventReturn CheckBox::OnClicked(EventParams &e) {
|
|||||||
|
|
||||||
void CheckBox::Draw(UIContext &dc) {
|
void CheckBox::Draw(UIContext &dc) {
|
||||||
Style style = dc.theme->itemStyle;
|
Style style = dc.theme->itemStyle;
|
||||||
if (!IsEnabled())
|
if (!IsEnabled()) {
|
||||||
style = dc.theme->itemDisabledStyle;
|
style = dc.theme->itemDisabledStyle;
|
||||||
|
}
|
||||||
|
if (HasFocus()) {
|
||||||
|
style = dc.theme->itemFocusedStyle;
|
||||||
|
}
|
||||||
|
if (down_) {
|
||||||
|
style = dc.theme->itemDownStyle;
|
||||||
|
}
|
||||||
dc.SetFontStyle(dc.theme->uiFont);
|
dc.SetFontStyle(dc.theme->uiFont);
|
||||||
|
|
||||||
ClickableItem::Draw(dc);
|
ClickableItem::Draw(dc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user