Skip to content

Commit fba7fde

Browse files
committed
Fix #5102
- Add horizontal / vertical cut parameters to skins. When the screen aspect ratio and the background image aspect ratio don't match, these parameters determine if the background picture gets stretched (but still displayed fully) or not (cutting away parts of the image but avoiding any stretching) - Use those parameters to appropriately display the background image Initial work for this commit was made by @willliam9
1 parent 599bb3a commit fba7fde

File tree

13 files changed

+81
-26
lines changed

13 files changed

+81
-26
lines changed

data/skins/cartoon-coal/stkskin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Here you can configure advanced theming rules for this skin
1515
-->
1616

1717
<!-- Stateless -->
18-
<element type="background" image="background.jpg" />
18+
<element type="background" image="background.jpg" horizontal-cut="true" vertical-cut="true"/>
1919

2020
<element type="bottom-bar" image="bottom_bar.png" />
2121

data/skins/cartoon-desert/stkskin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Here you can configure advanced theming rules for this skin
1515
-->
1616

1717
<!-- Stateless -->
18-
<element type="background" image="background.jpg" />
18+
<element type="background" image="background.jpg" horizontal-cut="true" vertical-cut="true"/>
1919

2020
<element type="bottom-bar" image="bottom_bar.png" />
2121

data/skins/cartoon-forest/stkskin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Here you can configure advanced theming rules for this skin
1515
-->
1616

1717
<!-- Stateless -->
18-
<element type="background" image="background.jpg" />
18+
<element type="background" image="background.jpg" horizontal-cut="true" vertical-cut="true"/>
1919

2020
<element type="bottom-bar" image="bottom_bar.png" />
2121

data/skins/cartoon-ocean/stkskin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Here you can configure advanced theming rules for this skin
1515
-->
1616

1717
<!-- Stateless -->
18-
<element type="background" image="background.jpg" />
18+
<element type="background" image="background.jpg" horizontal-cut="true" vertical-cut="true"/>
1919

2020
<element type="bottom-bar" image="bottom_bar.png" />
2121

data/skins/cartoon-ruby/stkskin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Here you can configure advanced theming rules for this skin
1515
-->
1616

1717
<!-- Stateless -->
18-
<element type="background" image="background.jpg" />
18+
<element type="background" image="background.jpg" horizontal-cut="true" vertical-cut="true"/>
1919

2020
<element type="bottom-bar" image="bottom_bar.png" />
2121

data/skins/cartoon/stkskin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Here you can configure advanced theming rules for this skin
1414
<advanced normal_ttf="Inter-UI-Black.ttf NotoSansThai-Black.ttf NotoSansHebrew-Black.ttf NotoSansArabicUI-Black.ttf NotoSansMalayalam-Bold.ttf" />
1515

1616
<!-- Stateless -->
17-
<element type="background" image="background.jpg" />
17+
<element type="background" image="background.jpg" horizontal-cut="true" vertical-cut="true"/>
1818

1919
<element type="bottom-bar" common="y" image="bottom_bar.png" />
2020

data/skins/classic-coal/stkskin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Here you can configure advanced theming rules for this skin
1616
-->
1717

1818
<!-- Stateless -->
19-
<element type="background" image="background.jpg" />
19+
<element type="background" image="background.jpg" horizontal-cut="true" vertical-cut="false"/>
2020

2121
<element type="bottom-bar" image="bottom_bar.png" />
2222

data/skins/classic-desert/stkskin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Here you can configure advanced theming rules for this skin
1616
-->
1717

1818
<!-- Stateless -->
19-
<element type="background" common="y" image="background.jpg" />
19+
<element type="background" common="y" image="background.jpg" horizontal-cut="true" vertical-cut="false"/>
2020

2121
<element type="bottom-bar" common="y" image="bottom_bar.png" />
2222

data/skins/classic-forest/stkskin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Here you can configure advanced theming rules for this skin
1616
-->
1717

1818
<!-- Stateless -->
19-
<element type="background" common="y" image="background.jpg" />
19+
<element type="background" common="y" image="background.jpg" horizontal-cut="true" vertical-cut="false"/>
2020

2121
<element type="bottom-bar" common="y" image="bottom_bar.png" />
2222

data/skins/classic-ocean/stkskin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Here you can configure advanced theming rules for this skin
1515
-->
1616

1717
<!-- Stateless -->
18-
<element type="background" common="y" image="background.jpg" />
18+
<element type="background" common="y" image="background.jpg" horizontal-cut="true" vertical-cut="false"/>
1919

2020
<element type="bottom-bar" common="y" image="bottom_bar.png" />
2121

0 commit comments

Comments
 (0)