mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-13 01:22:41 +01:00
DroidFish: Don't use largest font size for status text in portrait mode.
This commit is contained in:
@@ -786,7 +786,11 @@ public class DroidFish extends Activity implements GUIInterface {
|
|||||||
|
|
||||||
int fontSize = getIntSetting("fontSize", 12);
|
int fontSize = getIntSetting("fontSize", 12);
|
||||||
figNotation = Typeface.createFromAsset(getAssets(), "fonts/DroidFishChessNotationDark.otf");
|
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);
|
moveList.setTextSize(fontSize);
|
||||||
thinking.setTextSize(fontSize);
|
thinking.setTextSize(fontSize);
|
||||||
soundEnabled = settings.getBoolean("soundEnabled", false);
|
soundEnabled = settings.getBoolean("soundEnabled", false);
|
||||||
|
|||||||
Reference in New Issue
Block a user