mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-02-17 09:37:50 +01:00
DroidFish: Don't use largest font size for status text in portrait mode.
This commit is contained in:
parent
b0a2f9f317
commit
ad349a36b1
|
@ -786,7 +786,11 @@ public class DroidFish extends Activity implements GUIInterface {
|
|||
|
||||
int fontSize = getIntSetting("fontSize", 12);
|
||||
figNotation = Typeface.createFromAsset(getAssets(), "fonts/DroidFishChessNotationDark.otf");
|
||||
status.setTextSize(fontSize);
|
||||
int statusFontSize = fontSize;
|
||||
Configuration config = getResources().getConfiguration();
|
||||
if (config.orientation == Configuration.ORIENTATION_PORTRAIT)
|
||||
statusFontSize = Math.min(statusFontSize, 16);
|
||||
status.setTextSize(statusFontSize);
|
||||
moveList.setTextSize(fontSize);
|
||||
thinking.setTextSize(fontSize);
|
||||
soundEnabled = settings.getBoolean("soundEnabled", false);
|
||||
|
|
Loading…
Reference in New Issue
Block a user