Merge lp:~widelands-dev/widelands/bug-1532279 into lp:widelands

Proposed by GunChleoc
Status: Merged
Merged at revision: 7734
Proposed branch: lp:~widelands-dev/widelands/bug-1532279
Merge into: lp:widelands
Diff against target: 71 lines (+10/-6)
3 files modified
i18n/fonts.lua (+5/-2)
src/ui_basic/spinbox.cc (+2/-1)
src/ui_fsmenu/options.cc (+3/-3)
To merge this branch: bzr merge lp:~widelands-dev/widelands/bug-1532279
Reviewer Review Type Date Requested Status
SirVer Approve
Review via email: mp+283720@code.launchpad.net

Commit message

- Increased label height in spinboxes to avoid autogeneration of scrollbar button by the MultilineTextarea.
- Added size offset to some fonts that were too small.

Description of the change

The extra button belonged to the scrollbar generated by the label, which is a Multilinetextarea. So, I gave the label a bit more height.

To post a comment you must log in.
Revision history for this message
bunnybot (widelandsofficial) wrote :

Hi, I am bunnybot (https://github.com/widelands/bunnybot).

I am keeping the source branch lp:~widelands-dev/widelands/bug-1532279 mirrored to https://github.com/widelands/widelands/tree/_widelands_dev_widelands_bug_1532279

You can give me commands by starting a line with @bunnybot <command>. I understand:
 merge: Merges the source branch into the target branch, closing the merge proposal. I will use the proposed commit message if it is set.

Revision history for this message
bunnybot (widelandsofficial) wrote :

Travis build 353 has changed state to: passed. Details: https://travis-ci.org/widelands/widelands/builds/104294117.

Revision history for this message
SirVer (sirver) wrote :

One nit, otherwise lgtm.

review: Approve
Revision history for this message
SirVer (sirver) wrote :

And also tested, works fine.

Revision history for this message
GunChleoc (gunchleoc) wrote :

@bunnybot merge

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'i18n/fonts.lua'
2--- i18n/fonts.lua 2015-10-31 12:11:44 +0000
3+++ i18n/fonts.lua 2016-01-24 08:33:27 +0000
4@@ -46,7 +46,8 @@
5
6 devanagari = {
7 serif = "Nakula/nakula.ttf",
8- direction = "rtl"
9+ direction = "rtl",
10+ size_offset = 2
11 },
12
13 hebrew = {
14@@ -56,11 +57,13 @@
15 sans = "Culmus/TaameyFrankCLM-Medium.ttf",
16 sans_bold = "TaameyFrankCLM-Bold.ttf",
17 sans_italic = "Culmus/TaameyFrankCLM-MediumOblique.ttf",
18- direction = "rtl"
19+ direction = "rtl",
20+ size_offset = 4
21 },
22
23 myanmar = {
24 serif = "mmrCensus/mmrCensus.ttf",
25+ size_offset = 2
26 },
27
28 sinhala = {
29
30=== modified file 'src/ui_basic/spinbox.cc'
31--- src/ui_basic/spinbox.cc 2016-01-01 18:41:20 +0000
32+++ src/ui_basic/spinbox.cc 2016-01-24 08:33:27 +0000
33@@ -108,7 +108,8 @@
34 uint32_t padding = 2;
35 uint32_t actual_w = std::max(w, unit_w);
36 uint32_t no_padding = (is_big ? 6 : 4);
37- uint32_t texth = UI::g_fh1->render(as_uifont("."))->height();
38+ // Give some height margin = 2 to keep the label from generating a scrollbar.
39+ uint32_t texth = UI::g_fh1->render(as_uifont("."))->height() + 2;
40 uint32_t buttonh = 20;
41
42 // 40 is an ad hoc width estimate for the MultilineTextarea scrollbar + a bit of text.
43
44=== modified file 'src/ui_fsmenu/options.cc'
45--- src/ui_fsmenu/options.cc 2016-01-05 09:54:44 +0000
46+++ src/ui_fsmenu/options.cc 2016-01-24 08:33:27 +0000
47@@ -189,7 +189,7 @@
48
49 // Saving options
50 sb_autosave_
51- (&box_saving_, 0, 0, column_width_, 240,
52+ (&box_saving_, 0, 0, column_width_, 250,
53 opt.autosave / 60, 0, 100, _("Save game automatically every"),
54 /** TRANSLATORS: Options: Save game automatically every: */
55 /** TRANSLATORS: This will have a number added in front of it */
56@@ -197,13 +197,13 @@
57 g_gr->images().get("pics/but3.png"), UI::SpinBox::Type::kBig),
58
59 sb_rolling_autosave_
60- (&box_saving_, 0, 0, column_width_, 240,
61+ (&box_saving_, 0, 0, column_width_, 250,
62 opt.rolling_autosave, 1, 20, _("Maximum number of autosave files"),
63 "",
64 g_gr->images().get("pics/but3.png"), UI::SpinBox::Type::kBig),
65
66 sb_remove_replays_
67- (&box_saving_, 0, 0, column_width_, 240,
68+ (&box_saving_, 0, 0, column_width_, 250,
69 opt.remove_replays, 0, 365, _("Remove replays older than:"),
70 /** TRANSLATORS: Options: Remove Replays older than: */
71 /** TRANSLATORS: This will have a number added in front of it */

Subscribers

People subscribed via source and target branches

to status/vote changes: