This avoids the terminal content from being pushed down when starting text selection. The drawback is that one cannot select text at the top rows without scrolling - something to fix for the future.
24 lines
1.2 KiB
XML
24 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<!-- See https://developer.android.com/training/material/theme.html for how to customize the Material theme. -->
|
|
<!-- NOTE: Cannot use "Light." since it hides the terminal scrollbar on the default black background. -->
|
|
<style name="Theme.Termux" parent="@android:style/Theme.Material.Light.NoActionBar">
|
|
<item name="android:statusBarColor">#000000</item>
|
|
<item name="android:windowBackground">@android:color/black</item>
|
|
|
|
<!-- Seen in buttons on left drawer: -->
|
|
<item name="android:colorAccent">#212121</item>
|
|
<item name="android:alertDialogTheme">@style/TermuxAlertDialogStyle</item>
|
|
<!-- Avoid action mode toolbar pushing down terminal content when
|
|
selecting text on pre-6.0 (non-floating toolbar). -->
|
|
<item name="android:windowActionModeOverlay">true</item>
|
|
</style>
|
|
|
|
<style name="TermuxAlertDialogStyle" parent="@android:style/Theme.Material.Light.Dialog.Alert">
|
|
<!-- Seen in buttons on alert dialog: -->
|
|
<item name="android:colorAccent">#212121</item>
|
|
</style>
|
|
|
|
</resources>
|