Fix some naming; Rename many resources
@ -59,12 +59,12 @@
|
|||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:theme="@style/MenuDialog"
|
android:theme="@style/Theme.AppCompat.DayNight.Dialog"
|
||||||
android:screenOrientation="sensorLandscape"
|
android:screenOrientation="sensorLandscape"
|
||||||
android:name=".FatalErrorActivity"
|
android:name=".FatalErrorActivity"
|
||||||
android:configChanges="keyboardHidden|orientation|screenSize|keyboard|navigation"/>
|
android:configChanges="keyboardHidden|orientation|screenSize|keyboard|navigation"/>
|
||||||
<activity
|
<activity
|
||||||
android:theme="@style/MenuDialog"
|
android:theme="@style/Theme.AppCompat.DayNight.Dialog"
|
||||||
android:screenOrientation="sensorLandscape"
|
android:screenOrientation="sensorLandscape"
|
||||||
android:name=".ExitActivity"
|
android:name=".ExitActivity"
|
||||||
android:configChanges="keyboardHidden|orientation|screenSize|keyboard|navigation"/>
|
android:configChanges="keyboardHidden|orientation|screenSize|keyboard|navigation"/>
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
package net.kdt.pojavlaunch;
|
package net.kdt.pojavlaunch;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class JAssets {
|
public class JAssets {
|
||||||
public boolean mapToResources;
|
@SerializedName("map_to_resources") public boolean mapToResources;
|
||||||
public Map<String, JAssetInfo> objects;
|
public Map<String, JAssetInfo> objects;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,6 @@ import net.kdt.pojavlaunch.customcontrols.buttons.ControlButton;
|
|||||||
|
|
||||||
public abstract class HandleView extends View implements ViewPositionListener, View.OnLongClickListener {
|
public abstract class HandleView extends View implements ViewPositionListener, View.OnLongClickListener {
|
||||||
protected Drawable mDrawable;
|
protected Drawable mDrawable;
|
||||||
protected Drawable mDrawableLtr;
|
|
||||||
protected Drawable mDrawableRtl;
|
protected Drawable mDrawableRtl;
|
||||||
private final PopupWindow mContainer;
|
private final PopupWindow mContainer;
|
||||||
// Position with respect to the parent TextView
|
// Position with respect to the parent TextView
|
||||||
@ -92,8 +91,7 @@ public abstract class HandleView extends View implements ViewPositionListener, V
|
|||||||
mContainer.setWindowLayoutType(WindowManager.LayoutParams.TYPE_APPLICATION_SUB_PANEL);
|
mContainer.setWindowLayoutType(WindowManager.LayoutParams.TYPE_APPLICATION_SUB_PANEL);
|
||||||
mContainer.setContentView(this);
|
mContainer.setContentView(this);
|
||||||
|
|
||||||
mDrawableLtr = view.getContext().getDrawable(R.drawable.text_select_handle_left_material);
|
mDrawableRtl = view.getContext().getDrawable(R.drawable.view_handle);
|
||||||
mDrawableRtl = view.getContext().getDrawable(R.drawable.text_select_handle_right_material);
|
|
||||||
mMinSize = view.getContext().getResources().getDimensionPixelSize(R.dimen.text_handle_min_size);
|
mMinSize = view.getContext().getResources().getDimensionPixelSize(R.dimen.text_handle_min_size);
|
||||||
|
|
||||||
setOnLongClickListener(this);
|
setOnLongClickListener(this);
|
||||||
@ -201,7 +199,7 @@ public abstract class HandleView extends View implements ViewPositionListener, V
|
|||||||
protected void updateDrawable() {
|
protected void updateDrawable() {
|
||||||
// final int offset = getCurrentCursorOffset();
|
// final int offset = getCurrentCursorOffset();
|
||||||
final boolean isRtlCharAtOffset = true; // mView.getLayout().isRtlCharAt(offset);
|
final boolean isRtlCharAtOffset = true; // mView.getLayout().isRtlCharAt(offset);
|
||||||
mDrawable = isRtlCharAtOffset ? mDrawableRtl : mDrawableLtr;
|
mDrawable = mDrawableRtl; //isRtlCharAtOffset ? mDrawableRtl : mDrawableLtr;
|
||||||
mHotspotX = getHotspotX(mDrawable, isRtlCharAtOffset);
|
mHotspotX = getHotspotX(mDrawable, isRtlCharAtOffset);
|
||||||
mHorizontalGravity = getHorizontalGravity(isRtlCharAtOffset);
|
mHorizontalGravity = getHorizontalGravity(isRtlCharAtOffset);
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,10 @@ import net.kdt.pojavlaunch.multirt.Runtime;
|
|||||||
import net.kdt.pojavlaunch.value.PerVersionConfig;
|
import net.kdt.pojavlaunch.value.PerVersionConfig;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class PerVersionConfigDialog{
|
public class PerVersionConfigDialog{
|
||||||
@ -38,7 +41,8 @@ public class PerVersionConfigDialog{
|
|||||||
mJvmSpinner = mRootView.findViewById(R.id.pvc_javaVm);
|
mJvmSpinner = mRootView.findViewById(R.id.pvc_javaVm);
|
||||||
mRendererSpinner = mRootView.findViewById(R.id.pvc_renderer);
|
mRendererSpinner = mRootView.findViewById(R.id.pvc_renderer);
|
||||||
|
|
||||||
List<String> renderList = Arrays.asList(mContext.getResources().getStringArray(R.array.renderer));
|
ArrayList<String> renderList = new ArrayList<>(5);
|
||||||
|
Collections.addAll(renderList, mContext.getResources().getStringArray(R.array.renderer));
|
||||||
renderList.add("Default");
|
renderList.add("Default");
|
||||||
mRendererNames = Arrays.asList(mContext.getResources().getStringArray(R.array.renderer_values));
|
mRendererNames = Arrays.asList(mContext.getResources().getStringArray(R.array.renderer_values));
|
||||||
mRendererSpinner.setAdapter(new ArrayAdapter<>(mContext, android.R.layout.simple_spinner_dropdown_item, renderList));
|
mRendererSpinner.setAdapter(new ArrayAdapter<>(mContext, android.R.layout.simple_spinner_dropdown_item, renderList));
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:duration="300"
|
|
||||||
android:fromXDelta="100%"
|
|
||||||
android:toXDelta="0%"/>
|
|
@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:fromXDelta="0%" android:toXDelta="100%"
|
|
||||||
android:fromYDelta="0%" android:toYDelta="0%"
|
|
||||||
android:duration="300"/>
|
|
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 478 B |
Before Width: | Height: | Size: 486 B |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
0
app_pojavlauncher/src/main/res/drawable-mdpi/jre_args.png → app_pojavlauncher/src/main/res/drawable-mdpi/ic_setting_jre_args.png
Executable file → Normal file
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 346 B |
Before Width: | Height: | Size: 347 B |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 751 B |
Before Width: | Height: | Size: 752 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
0
app_pojavlauncher/src/main/res/drawable/ignore_notch.png → app_pojavlauncher/src/main/res/drawable/ic_setting_ignore_notch.png
Executable file → Normal file
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 8.8 KiB |
@ -1,19 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Copyright (C) 2014 The Android Open Source Project
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:src="@drawable/text_select_handle_left_mtrl_alpha"
|
|
||||||
android:tint="?attr/colorControlActivated" />
|
|
@ -1,19 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Copyright (C) 2014 The Android Open Source Project
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:src="@drawable/text_select_handle_right_mtrl_alpha"
|
|
||||||
android:tint="?attr/colorControlActivated" />
|
|
4
app_pojavlauncher/src/main/res/drawable/view_handle.xml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<vector android:height="25dp" android:viewportHeight="237.15"
|
||||||
|
android:viewportWidth="235.95" android:width="25dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="?attr/colorControlActivated" android:pathData="M0.17,5.8c-0.3,3.3 -0.2,34 0.3,68.4 0.9,56.5 1.2,63.4 3,72a110.3,110.3 0,0 0,31.9 59.2A125,125 0,0 0,137.57 235.7c51,-8.2 86.7,-42.2 96.6,-92.1 2.1,-10.7 2.4,-36.6 0.6,-46.4 -2,-10.2 -7.1,-25.8 -10.9,-33.5 -17.1,-34 -44.3,-53.6 -84.8,-61.1 -7.6,-1.4 -19.3,-1.7 -73.6,-2.1l-64.7,-0.5 -0.6,5.8z"/>
|
||||||
|
</vector>
|
@ -12,7 +12,7 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:elevation="-10dp"
|
android:elevation="-10dp"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
android:src="@drawable/sign_in_background" />
|
android:src="@drawable/ic_setting_sign_in_background" />
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:elevation="-10dp"
|
android:elevation="-10dp"
|
||||||
android:src="@drawable/sign_in_background"
|
android:src="@drawable/ic_setting_sign_in_background"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
@ -9,23 +9,4 @@
|
|||||||
<item name="android:windowTranslucentNavigation">true</item>
|
<item name="android:windowTranslucentNavigation">true</item>
|
||||||
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
|
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="MenuDialog" parent="@style/AppTheme">
|
|
||||||
<item name="windowActionBar">false</item>
|
|
||||||
<item name="windowNoTitle">true</item>
|
|
||||||
|
|
||||||
<item name="android:windowFrame">@null</item>
|
|
||||||
<item name="android:windowIsFloating">true</item>
|
|
||||||
<item name="android:windowContentOverlay">@null</item>
|
|
||||||
<item name="android:windowAnimationStyle">@style/MenuDialogAnimation</item>
|
|
||||||
<item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
|
|
||||||
<item name="android:windowTranslucentNavigation">true</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="MenuDialogAnimation">
|
|
||||||
<item name="android:windowEnterAnimation">@anim/translate_left_side</item>
|
|
||||||
<item name="android:windowExitAnimation">@anim/translate_right_side</item>
|
|
||||||
<item name="android:windowTranslucentNavigation">true</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<androidx.preference.SwitchPreferenceCompat
|
<androidx.preference.SwitchPreferenceCompat
|
||||||
android:defaultValue="false"
|
android:defaultValue="false"
|
||||||
android:icon="@drawable/ic_disable_gestures"
|
android:icon="@drawable/ic_setting_disable_gestures"
|
||||||
android:key="disableGestures"
|
android:key="disableGestures"
|
||||||
android:summary="@string/mcl_disable_gestures_subtitle"
|
android:summary="@string/mcl_disable_gestures_subtitle"
|
||||||
android:title="@string/mcl_disable_gestures" />
|
android:title="@string/mcl_disable_gestures" />
|
||||||
@ -21,7 +21,7 @@
|
|||||||
app2:showSeekBarValue="true"
|
app2:showSeekBarValue="true"
|
||||||
app2:selectable="false"
|
app2:selectable="false"
|
||||||
app2:seekBarIncrement="10"
|
app2:seekBarIncrement="10"
|
||||||
app2:icon="@drawable/tap_len" />
|
app2:icon="@drawable/ic_setting_tap_length" />
|
||||||
|
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
|
|
||||||
@ -35,7 +35,7 @@
|
|||||||
app2:showSeekBarValue="true"
|
app2:showSeekBarValue="true"
|
||||||
app2:selectable="false"
|
app2:selectable="false"
|
||||||
app2:seekBarIncrement="5"
|
app2:seekBarIncrement="5"
|
||||||
app2:icon="@drawable/btn_scale"/>
|
app2:icon="@drawable/ic_setting_btn_scale"/>
|
||||||
|
|
||||||
<net.kdt.pojavlaunch.prefs.ControlOffsetPreference/>
|
<net.kdt.pojavlaunch.prefs.ControlOffsetPreference/>
|
||||||
|
|
||||||
@ -48,7 +48,7 @@
|
|||||||
android:key="mousescale"
|
android:key="mousescale"
|
||||||
android:summary="@string/mcl_setting_subtitle_mousescale"
|
android:summary="@string/mcl_setting_subtitle_mousescale"
|
||||||
android:title="@string/mcl_setting_title_mousescale"
|
android:title="@string/mcl_setting_title_mousescale"
|
||||||
app2:icon="@drawable/mouse_pointer_1"
|
app2:icon="@drawable/ic_setting_mouse_pointer"
|
||||||
app2:selectable="false"
|
app2:selectable="false"
|
||||||
app2:seekBarIncrement="5"
|
app2:seekBarIncrement="5"
|
||||||
app2:showSeekBarValue="true" />
|
app2:showSeekBarValue="true" />
|
||||||
@ -56,7 +56,7 @@
|
|||||||
android:key="mousespeed"
|
android:key="mousespeed"
|
||||||
android:summary="@string/mcl_setting_subtitle_mousespeed"
|
android:summary="@string/mcl_setting_subtitle_mousespeed"
|
||||||
android:title="@string/mcl_setting_title_mousespeed"
|
android:title="@string/mcl_setting_title_mousespeed"
|
||||||
app2:icon="@drawable/mouse_pointer_spd"
|
app2:icon="@drawable/ic_setting_mouse_pointer_spd"
|
||||||
app2:selectable="false"
|
app2:selectable="false"
|
||||||
app2:seekBarIncrement="5"
|
app2:seekBarIncrement="5"
|
||||||
app2:showSeekBarValue="true" />
|
app2:showSeekBarValue="true" />
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<androidx.preference.EditTextPreference
|
<androidx.preference.EditTextPreference
|
||||||
android:dialogTitle="@string/mcl_setting_title_javaargs"
|
android:dialogTitle="@string/mcl_setting_title_javaargs"
|
||||||
android:icon="@drawable/jre_args"
|
android:icon="@drawable/ic_setting_jre_args"
|
||||||
android:key="javaArgs"
|
android:key="javaArgs"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:summary="@string/mcl_setting_subtitle_javaargs"
|
android:summary="@string/mcl_setting_subtitle_javaargs"
|
||||||
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
<net.kdt.pojavlaunch.prefs.CustomSeekBarPreference
|
<net.kdt.pojavlaunch.prefs.CustomSeekBarPreference
|
||||||
android:key="allocation"
|
android:key="allocation"
|
||||||
android:icon="@drawable/ic_auto_ram"
|
android:icon="@drawable/ic_setting_ram"
|
||||||
android:summary="@string/mcl_memory_allocation_subtitle"
|
android:summary="@string/mcl_memory_allocation_subtitle"
|
||||||
android:title="@string/mcl_memory_allocation"
|
android:title="@string/mcl_memory_allocation"
|
||||||
app2:showSeekBarValue="true"
|
app2:showSeekBarValue="true"
|
||||||
|
@ -18,11 +18,11 @@
|
|||||||
android:key="hideSidebar"
|
android:key="hideSidebar"
|
||||||
android:summary="@string/mcl_setting_subtitle_hide_sidebar"
|
android:summary="@string/mcl_setting_subtitle_hide_sidebar"
|
||||||
android:title="@string/mcl_setting_title_hide_sidebar"
|
android:title="@string/mcl_setting_title_hide_sidebar"
|
||||||
app2:icon="@drawable/hide_sidebar" />
|
app2:icon="@drawable/ic_setting_hide_sidebar" />
|
||||||
|
|
||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
android:defaultValue="true"
|
android:defaultValue="true"
|
||||||
android:icon="@drawable/ic_lib_check"
|
android:icon="@drawable/ic_setting_lib_check"
|
||||||
android:key="checkLibraries"
|
android:key="checkLibraries"
|
||||||
android:summary="@string/mcl_setting_check_libraries_subtitle"
|
android:summary="@string/mcl_setting_check_libraries_subtitle"
|
||||||
android:title="@string/mcl_setting_check_libraries" />
|
android:title="@string/mcl_setting_check_libraries" />
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
android:key="ignoreNotch"
|
android:key="ignoreNotch"
|
||||||
android:summary="@string/mcl_setting_subtitle_ignore_notch"
|
android:summary="@string/mcl_setting_subtitle_ignore_notch"
|
||||||
android:title="@string/mcl_setting_title_ignore_notch"
|
android:title="@string/mcl_setting_title_ignore_notch"
|
||||||
app2:icon="@drawable/ignore_notch" />
|
app2:icon="@drawable/ic_setting_ignore_notch" />
|
||||||
|
|
||||||
<net.kdt.pojavlaunch.prefs.CustomSeekBarPreference
|
<net.kdt.pojavlaunch.prefs.CustomSeekBarPreference
|
||||||
android:key="resolutionRatio"
|
android:key="resolutionRatio"
|
||||||
@ -27,6 +27,6 @@
|
|||||||
app2:showSeekBarValue="true"
|
app2:showSeekBarValue="true"
|
||||||
app2:selectable="false"
|
app2:selectable="false"
|
||||||
app2:seekBarIncrement="5"
|
app2:seekBarIncrement="5"
|
||||||
app2:icon="@drawable/resolution_scaler"/>
|
app2:icon="@drawable/ic_setting_resolution_scaler"/>
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|