
* java/org/gnu/emacs/EmacsView.java (EmacsView): Guarantee that frame views are created with the correct theme. * java/res/values-v20/style.xml (EmacsStyle): * java/res/values-v29/style.xml (EmacsStyle): Disable a swiping gesture enabled on certain Android systems. * java/res/values-v35/style.xml: Rename from `styles'.xml.
33 lines
1.3 KiB
XML
33 lines
1.3 KiB
XML
<!-- Style resources for GNU Emacs on Android.
|
|
|
|
Copyright (C) 2024-2025 Free Software Foundation, Inc.
|
|
|
|
This file is part of GNU Emacs.
|
|
|
|
GNU Emacs is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
GNU Emacs is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. -->
|
|
|
|
<resources>
|
|
<!-- Style used for popup menus and relatives from Android 15.0
|
|
onwards. -->
|
|
<style name="EmacsStyle" parent="@android:style/Theme.DeviceDefault.DayNight">
|
|
<item name="android:windowActionBar">false</item>
|
|
<item name="android:windowNoTitle">true</item>
|
|
<item name="android:windowLightStatusBar">?android:attr/isLightTheme</item>
|
|
<!-- Suppress the swipe-to-dismiss gesture enabled on certain
|
|
systems. -->
|
|
<item name="android:windowSwipeToDismiss">false</item>
|
|
</style>
|
|
<style name="EmacsStyleOpen"
|
|
parent="@android:style/Theme.DeviceDefault.DayNight"/>
|
|
</resources>
|