mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-08 01:51:09 +01:00
Use action mode overlay on pre-6.0 devices
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.
This commit is contained in:
parent
50337cbf9d
commit
8f1ab1bc17
1 changed files with 6 additions and 3 deletions
|
|
@ -6,10 +6,13 @@
|
|||
<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>
|
||||
<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">
|
||||
|
|
@ -17,4 +20,4 @@
|
|||
<item name="android:colorAccent">#212121</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue