Skip to content

Commit 62f5aa8

Browse files
Scrollbar: Improve appearance
1 parent a238dc2 commit 62f5aa8

File tree

6 files changed

+35
-20
lines changed

6 files changed

+35
-20
lines changed

data/skins/Coal.stkskin

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,13 @@ when the border that intersect at this corner are enabled.
229229
<!-- Scrollbars. Background and thumb have no state (always neutral state).
230230
The buttons are the top and bottom arrows. Image must be top arrow, will
231231
be mirrorred for bottom. Buttons can be in neutral or down state.
232-
Advanced stretching is not used here.
233-
-->
234-
<element type="scrollbar_background" image="common/scrollbar_bg.png" />
235-
<element type="scrollbar_thumb" image="coal/scrollbar_thumb.png" />
232+
Advanced stretching is only used for the background and thumb. -->
233+
<element type="scrollbar_background" image="common/scrollbar_bg.png"
234+
left_border="7" right_border="7" top_border="7" bottom_border="7"
235+
hborder_out_portion="0.0" vborder_out_portion="0.0" />
236+
<element type="scrollbar_thumb" image="coal/scrollbar_thumb.png"
237+
left_border="7" right_border="7" top_border="7" bottom_border="7"
238+
hborder_out_portion="-1.0" vborder_out_portion="-1.0" />
236239
<element type="scrollbar_button" image="common/scrollbar_btn.png" />
237240
<element type="scrollbar_button" state="down" image="coal/scrollbar_btn_down.png" />
238241

data/skins/Forest.stkskin

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,13 @@ when the border that intersect at this corner are enabled.
229229
<!-- Scrollbars. Background and thumb have no state (always neutral state).
230230
The buttons are the top and bottom arrows. Image must be top arrow, will
231231
be mirrorred for bottom. Buttons can be in neutral or down state.
232-
Advanced stretching is not used here.
233-
-->
234-
<element type="scrollbar_background" image="common/scrollbar_bg.png" />
235-
<element type="scrollbar_thumb" image="forest/scrollbar_thumb.png" />
232+
Advanced stretching is only used for the background and thumb. -->
233+
<element type="scrollbar_background" image="common/scrollbar_bg.png"
234+
left_border="7" right_border="7" top_border="7" bottom_border="7"
235+
hborder_out_portion="0.0" vborder_out_portion="0.0" />
236+
<element type="scrollbar_thumb" image="forest/scrollbar_thumb.png"
237+
left_border="7" right_border="7" top_border="7" bottom_border="7"
238+
hborder_out_portion="-1.0" vborder_out_portion="-1.0" />
236239
<element type="scrollbar_button" image="common/scrollbar_btn.png" />
237240
<element type="scrollbar_button" state="down" image="forest/scrollbar_btn_down.png" />
238241

data/skins/Ocean.stkskin

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,13 @@ when the border that intersect at this corner are enabled.
228228
<!-- Scrollbars. Background and thumb have no state (always neutral state).
229229
The buttons are the top and bottom arrows. Image must be top arrow, will
230230
be mirrorred for bottom. Buttons can be in neutral or down state.
231-
Advanced stretching is not used here.
232-
-->
233-
<element type="scrollbar_background" image="common/scrollbar_bg.png" />
234-
<element type="scrollbar_thumb" image="ocean/scrollbar_thumb.png" />
231+
Advanced stretching is only used for the background and thumb. -->
232+
<element type="scrollbar_background" image="common/scrollbar_bg.png"
233+
left_border="7" right_border="7" top_border="7" bottom_border="7"
234+
hborder_out_portion="0.0" vborder_out_portion="0.0" />
235+
<element type="scrollbar_thumb" image="ocean/scrollbar_thumb.png"
236+
left_border="7" right_border="7" top_border="7" bottom_border="7"
237+
hborder_out_portion="-1.0" vborder_out_portion="-1.0" />
235238
<element type="scrollbar_button" image="common/scrollbar_btn.png" />
236239
<element type="scrollbar_button" state="down" image="ocean/scrollbar_btn_down.png" />
237240

data/skins/Peach.stkskin

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,13 @@ when the border that intersect at this corner are enabled.
226226
<!-- Scrollbars. Background and thumb have no state (always neutral state).
227227
The buttons are the top and bottom arrows. Image must be top arrow, will
228228
be mirrorred for bottom. Buttons can be in neutral or down state.
229-
Advanced stretching is not used here.
230-
-->
231-
<element type="scrollbar_background" image="common/scrollbar_bg.png" />
232-
<element type="scrollbar_thumb" image="peach/scrollbar_thumb.png" />
229+
Advanced stretching is only used for the background and thumb. -->
230+
<element type="scrollbar_background" image="common/scrollbar_bg.png"
231+
left_border="7" right_border="7" top_border="7" bottom_border="7"
232+
hborder_out_portion="0.0" vborder_out_portion="0.0" />
233+
<element type="scrollbar_thumb" image="peach/scrollbar_thumb.png"
234+
left_border="7" right_border="7" top_border="7" bottom_border="7"
235+
hborder_out_portion="-1.0" vborder_out_portion="-1.0" />
233236
<element type="scrollbar_button" image="common/scrollbar_btn.png" />
234237
<element type="scrollbar_button" state="down" image="peach/scrollbar_btn_down.png" />
235238

data/skins/Ruby.stkskin

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,13 @@ when the border that intersect at this corner are enabled.
227227
<!-- Scrollbars. Background and thumb have no state (always neutral state).
228228
The buttons are the top and bottom arrows. Image must be top arrow, will
229229
be mirrorred for bottom. Buttons can be in neutral or down state.
230-
Advanced stretching is not used here.
231-
-->
232-
<element type="scrollbar_background" image="common/scrollbar_bg.png" />
233-
<element type="scrollbar_thumb" image="ruby/scrollbar_thumb.png" />
230+
Advanced stretching is only used for the background and thumb. -->
231+
<element type="scrollbar_background" image="common/scrollbar_bg.png"
232+
left_border="7" right_border="7" top_border="7" bottom_border="7"
233+
hborder_out_portion="0.0" vborder_out_portion="0.0" />
234+
<element type="scrollbar_thumb" image="ruby/scrollbar_thumb.png"
235+
left_border="7" right_border="7" top_border="7" bottom_border="7"
236+
hborder_out_portion="-1.0" vborder_out_portion="-1.0" />
234237
<element type="scrollbar_button" image="common/scrollbar_btn.png" />
235238
<element type="scrollbar_button" state="down" image="ruby/scrollbar_btn_down.png" />
236239

data/skins/common/scrollbar_bg.png

522 Bytes
Loading

0 commit comments

Comments
 (0)