mirror of https://github.com/buggins/dlangui.git
cosmetic fixes
This commit is contained in:
parent
c1614f9f72
commit
76d4f219fe
|
@ -62,13 +62,12 @@
|
||||||
</style>
|
</style>
|
||||||
<style id="TAB_UP_BUTTON_TEXT"
|
<style id="TAB_UP_BUTTON_TEXT"
|
||||||
textColor="#000000"
|
textColor="#000000"
|
||||||
fontSize="12"
|
|
||||||
align="Center"
|
align="Center"
|
||||||
>
|
>
|
||||||
<state state_selected="true" state_focused="true" textColor="#000000"/>
|
<state state_selected="true" state_focused="true" textColor="#000000"/>
|
||||||
<state state_selected="true" textColor="#000000"/>
|
<state state_selected="true" textColor="#000000"/>
|
||||||
<state state_focused="true" textColor="#000000"/>
|
<state state_focused="true" textColor="#000000"/>
|
||||||
<state state_hovered="true" textColor="#FFE0E0"/>
|
<state state_hovered="true" textColor="#808000"/>
|
||||||
</style>
|
</style>
|
||||||
<style id="TAB_UP_BUTTON"
|
<style id="TAB_UP_BUTTON"
|
||||||
backgroundImageId="tab_btn_up"
|
backgroundImageId="tab_btn_up"
|
||||||
|
|
|
@ -302,9 +302,9 @@ class ScrollWidget : ScrollWidgetBase {
|
||||||
} else if (event.action == ScrollAction.PageDown) {
|
} else if (event.action == ScrollAction.PageDown) {
|
||||||
scrollTo(scrollPos.x + _clientRect.width * 3 / 4, scrollPos.y);
|
scrollTo(scrollPos.x + _clientRect.width * 3 / 4, scrollPos.y);
|
||||||
} else if (event.action == ScrollAction.LineUp) {
|
} else if (event.action == ScrollAction.LineUp) {
|
||||||
scrollTo(scrollPos.x - _clientRect.width / 20, scrollPos.y);
|
scrollTo(scrollPos.x - _clientRect.width / 10, scrollPos.y);
|
||||||
} else if (event.action == ScrollAction.LineDown) {
|
} else if (event.action == ScrollAction.LineDown) {
|
||||||
scrollTo(scrollPos.x + _clientRect.width / 20, scrollPos.y);
|
scrollTo(scrollPos.x + _clientRect.width / 10, scrollPos.y);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -318,10 +318,9 @@ class ScrollWidget : ScrollWidgetBase {
|
||||||
} else if (event.action == ScrollAction.PageDown) {
|
} else if (event.action == ScrollAction.PageDown) {
|
||||||
scrollTo(scrollPos.x, scrollPos.y + _clientRect.height * 3 / 4);
|
scrollTo(scrollPos.x, scrollPos.y + _clientRect.height * 3 / 4);
|
||||||
} else if (event.action == ScrollAction.LineUp) {
|
} else if (event.action == ScrollAction.LineUp) {
|
||||||
scrollTo(scrollPos.x, scrollPos.y - _clientRect.height / 20);
|
scrollTo(scrollPos.x, scrollPos.y - _clientRect.height / 10);
|
||||||
} else if (event.action == ScrollAction.LineDown) {
|
} else if (event.action == ScrollAction.LineDown) {
|
||||||
scrollTo(scrollPos.x, scrollPos.y + _clientRect.height / 20);
|
scrollTo(scrollPos.x, scrollPos.y + _clientRect.height / 10); }
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue