Compare commits
10 Commits
1.1.4+fork
...
1.1.4+fork
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
90bef7fddb | ||
|
|
c1b382ef34 | ||
|
|
028b88aa24 | ||
|
|
9d0ce33f5e | ||
|
|
dbb23d952c | ||
|
|
7fe7e47d53 | ||
|
|
d0c93dfd4d | ||
|
|
acdccaf80a | ||
|
|
769293ce1a | ||
|
|
8d0fe18b70 |
13
README.md
13
README.md
@@ -61,17 +61,12 @@ To bookmark a post, press the button between the Favorite and Share buttons on t
|
||||
|
||||
## Installation
|
||||
|
||||
**Press the download button above to download the APK. Open the downloaded file on your Android device to install it. Megalodon will automatically notify you about new updates inside the app.**
|
||||
**Press the download button above to download the APK. Open the downloaded file on your Android device to install it. Moshidon will automatically notify you about new updates inside the app.**
|
||||
|
||||
To install this app on your Android device, download the [latest release from GitHub](https://github.com/sk22/megalodon/releases/latest/download/megalodon.apk) and open it. You might have to accept installing APK files from your browser when trying to install it. You can also take a look at all releases on the [Releases](https://github.com/sk22/megalodon/releases) page.
|
||||
To install this app on your Android device, download the [latest release from GitHub](https://github.com/LucasGGamerM/moshidon/releases/latest/download/moshidon.apk) and open it. You might have to accept installing APK files from your browser when trying to install it. You can also take a look at all releases on the [Releases](https://github.com/LucasGGamerM/moshidon/releases) page.
|
||||
|
||||
Megalodon makes use of [Mastodon for Android](https://github.com/mastodon/mastodon-android)’s automatic update checker. Megalodon will check for new updates available on GitHub and offer to download and install them. You can also manually press “Check for updates” at the bottom of the settings page!
|
||||
Moshidon makes use of [Mastodon for Android](https://github.com/mastodon/mastodon-android)’s automatic update checker. Megalodon will check for new updates available on GitHub and offer to download and install them. You can also manually press “Check for updates” at the bottom of the settings page!
|
||||
|
||||
### Other sources
|
||||
|
||||
* **[Izzy's F-Droid repository](https://apt.izzysoft.de/fdroid/repo)**: https://apt.izzysoft.de/fdroid/index/apk/org.joinmastodon.android.sk
|
||||
|
||||
---
|
||||
|
||||
|
||||
## Release variants
|
||||
@@ -80,7 +75,7 @@ All downloads can be found on the [Releases](https://github.com/LucasGGamerM/mos
|
||||
|
||||
**`moshidon.apk`**
|
||||
|
||||
Variant with an integrated updater. If you download Megalodon from here (and not from an app store), just download the regular `megalodon.apk`.
|
||||
Variant with an integrated updater. If you download Moshidon from here (and not from an app store), just download the regular `moshidon.apk`.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ android {
|
||||
applicationId "org.joinmastodon.android.moshinda"
|
||||
minSdk 23
|
||||
targetSdk 33
|
||||
versionCode 60
|
||||
versionName "1.1.4+fork.60.moshinda"
|
||||
versionCode 62
|
||||
versionName "1.1.4+fork.62.moshinda"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
resConfigs "en", "ar-rSA", "bs-rBA", "ca-rES", "cs-rCZ", "de-rDE", "el-rGR", "es-rES",
|
||||
"eu-rES", "fi-rFI", "fr-rFR", "gl-rES", "hr-rHR", "hy-rAM", "it-rIT", "iw-rIL",
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<application
|
||||
android:name=".MastodonApp"
|
||||
android:allowBackup="true"
|
||||
android:label="@string/sk_app_name"
|
||||
android:label="@string/app_name"
|
||||
android:supportsRtl="true"
|
||||
android:localeConfig="@xml/locales_config"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
|
||||
@@ -62,7 +62,8 @@ public class GlobalUserPreferences{
|
||||
GREEN,
|
||||
BLUE,
|
||||
ORANGE,
|
||||
YELLOW
|
||||
YELLOW,
|
||||
MATERIAL3
|
||||
}
|
||||
|
||||
public enum ThemePreference{
|
||||
|
||||
@@ -143,7 +143,7 @@ public class PushNotificationReceiver extends BroadcastReceiver{
|
||||
.setShowWhen(true)
|
||||
.setCategory(Notification.CATEGORY_SOCIAL)
|
||||
.setAutoCancel(true)
|
||||
.setColor(context.getColor(R.color.primary_700));
|
||||
.setColor(context.getColor(R.color.shortcut_icon_background));
|
||||
if(avatar!=null){
|
||||
builder.setLargeIcon(UiUtils.getBitmapFromDrawable(avatar));
|
||||
}
|
||||
|
||||
@@ -237,6 +237,7 @@ public class SettingsFragment extends MastodonToolbarFragment{
|
||||
}
|
||||
|
||||
private void onColorPreferenceClick(GlobalUserPreferences.ColorPreference color){
|
||||
|
||||
GlobalUserPreferences.color=color;
|
||||
GlobalUserPreferences.save();
|
||||
restartActivityToApplyNewTheme();
|
||||
@@ -704,6 +705,15 @@ public class SettingsFragment extends MastodonToolbarFragment{
|
||||
pref = GlobalUserPreferences.ColorPreference.YELLOW;
|
||||
onColorPreferenceClick(pref);
|
||||
}
|
||||
else if(id==R.id.m3_color) {
|
||||
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
pref = GlobalUserPreferences.ColorPreference.MATERIAL3;
|
||||
onColorPreferenceClick(pref);
|
||||
}else{
|
||||
Toast.makeText(getActivity(), R.string.sk_not_supported,
|
||||
Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
else
|
||||
return false;
|
||||
return true;
|
||||
@@ -723,6 +733,7 @@ public class SettingsFragment extends MastodonToolbarFragment{
|
||||
case BLUE -> R.string.sk_color_theme_blue;
|
||||
case ORANGE -> R.string.sk_color_theme_brown;
|
||||
case YELLOW -> R.string.sk_color_theme_yellow;
|
||||
case MATERIAL3 -> R.string.sk_color_theme_material_you;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,6 @@ public class TextStatusDisplayItem extends StatusDisplayItem{
|
||||
private final TextView spoilerTitle, spoilerTitleInline;
|
||||
private final View spoilerOverlay, borderTop, borderBottom;
|
||||
private final Drawable backgroundColor, borderColor;
|
||||
private final Button translateToggle;
|
||||
|
||||
public Holder(Activity activity, ViewGroup parent){
|
||||
super(activity, R.layout.display_item_text, parent);
|
||||
@@ -84,7 +83,6 @@ public class TextStatusDisplayItem extends StatusDisplayItem{
|
||||
spoilerHeader=findViewById(R.id.spoiler_header);
|
||||
spoilerOverlay=findViewById(R.id.spoiler_overlay);
|
||||
borderTop=findViewById(R.id.border_top);
|
||||
translateToggle=findViewById(R.id.translate);
|
||||
borderBottom=findViewById(R.id.border_bottom);
|
||||
itemView.setOnClickListener(v->item.parentFragment.onRevealSpoilerClick(this));
|
||||
|
||||
@@ -108,6 +106,8 @@ public class TextStatusDisplayItem extends StatusDisplayItem{
|
||||
}
|
||||
@Override
|
||||
public void onError(ErrorResponse error){
|
||||
item.status.wantsTranslation=false;
|
||||
text.setText(item.text);
|
||||
error.showToast(item.parentFragment.getActivity());
|
||||
}
|
||||
|
||||
|
||||
@@ -718,6 +718,16 @@ public class UiUtils{
|
||||
GlobalUserPreferences.trueBlackTheme ? R.style.Theme_Mastodon_Dark_TrueBlack_Yellow : R.style.Theme_Mastodon_Dark_Yellow;
|
||||
});
|
||||
break;
|
||||
case MATERIAL3:
|
||||
context.setTheme(switch(GlobalUserPreferences.theme){
|
||||
case AUTO ->
|
||||
GlobalUserPreferences.trueBlackTheme ? R.style.Theme_Mastodon_AutoLightDark_TrueBlack_Material3 : R.style.Theme_Mastodon_AutoLightDark_Material3;
|
||||
case LIGHT ->
|
||||
R.style.Theme_Mastodon_Light_Material3;
|
||||
case DARK ->
|
||||
GlobalUserPreferences.trueBlackTheme ? R.style.Theme_Mastodon_Dark_TrueBlack_Material3 : R.style.Theme_Mastodon_Dark_Material3;
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<vector android:height="24dp" android:tint="#000000"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="?colorSecondary" android:pathData="M20,5h-9.12L10,2L4,2c-1.1,0 -2,0.9 -2,2v13c0,1.1 0.9,2 2,2h7l1,3h8c1.1,0 2,-0.9 2,-2L22,7c0,-1.1 -0.9,-2 -2,-2zM7.17,14.59c-2.25,0 -4.09,-1.83 -4.09,-4.09s1.83,-4.09 4.09,-4.09c1.04,0 1.99,0.37 2.74,1.07l0.07,0.06 -1.23,1.18 -0.06,-0.05c-0.29,-0.27 -0.78,-0.59 -1.52,-0.59 -1.31,0 -2.38,1.09 -2.38,2.42s1.07,2.42 2.38,2.42c1.37,0 1.96,-0.87 2.12,-1.46L7.08,11.46L7.08,9.91h3.95l0.01,0.07c0.04,0.21 0.05,0.4 0.05,0.61 0,2.35 -1.61,4 -3.92,4zM13.2,12.88c0.33,0.6 0.74,1.18 1.19,1.7l-0.54,0.53 -0.65,-2.23zM13.97,12.12h-0.99l-0.31,-1.04h3.99s-0.34,1.31 -1.56,2.74c-0.52,-0.62 -0.89,-1.23 -1.13,-1.7zM21,20c0,0.55 -0.45,1 -1,1h-7l2,-2 -0.81,-2.77 0.92,-0.92L17.79,18l0.73,-0.73 -2.71,-2.68c0.9,-1.03 1.6,-2.25 1.92,-3.51L19,11.08v-1.04h-3.64L15.36,9h-1.04v1.04h-1.96L11.18,6L20,6c0.55,0 1,0.45 1,1v13z"/>
|
||||
<path android:fillColor="?colorSecondary" android:pathData="M12.87,15.07l-2.54,-2.51 0.03,-0.03c1.74,-1.94 2.98,-4.17 3.71,-6.53L17,6L17,4h-7L10,2L8,2v2L1,4v1.99h11.17C11.5,7.92 10.44,9.75 9,11.35 8.07,10.32 7.3,9.19 6.69,8h-2c0.73,1.63 1.73,3.17 2.98,4.56l-5.09,5.02L4,19l5,-5 3.11,3.11 0.76,-2.04zM18.5,10h-2L12,22h2l1.12,-3h4.75L21,22h2l-4.5,-12zM15.88,17l1.62,-4.33L19.12,17h-3.24z"/>
|
||||
</vector>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<vector android:height="24dp" android:tint="#000000"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="?colorSecondary" android:pathData="M21,4L11,4l-1,-3L3,1c-1.1,0 -2,0.9 -2,2v15c0,1.1 0.9,2 2,2h8l1,3h9c1.1,0 2,-0.9 2,-2L23,6c0,-1.1 -0.9,-2 -2,-2zM7,16c-2.76,0 -5,-2.24 -5,-5s2.24,-5 5,-5c1.35,0 2.48,0.5 3.35,1.3L9.03,8.57c-0.38,-0.36 -1.04,-0.78 -2.03,-0.78 -1.74,0 -3.15,1.44 -3.15,3.21S5.26,14.21 7,14.21c2.01,0 2.84,-1.44 2.92,-2.41L7,11.8v-1.71h4.68c0.07,0.31 0.12,0.61 0.12,1.02C11.8,13.97 9.89,16 7,16zM13.17,10.58h3.7c-0.43,1.25 -1.11,2.43 -2.05,3.47 -0.31,-0.35 -0.6,-0.72 -0.86,-1.1l-0.79,-2.37zM21.5,20.5c0,0.55 -0.45,1 -1,1L14,21.5l2,-2.5 -1.04,-3.1 3.1,3.1 0.92,-0.92 -3.3,-3.25 0.02,-0.02c1.13,-1.25 1.93,-2.69 2.4,-4.22L20,10.59v-1.3h-4.53L15.47,8h-1.29v1.29h-1.44L11.46,5.5h9.04c0.55,0 1,0.45 1,1v14z"/>
|
||||
<path android:fillColor="?colorSecondary" android:pathData="M12.87,15.07l-2.54,-2.51 0.03,-0.03c1.74,-1.94 2.98,-4.17 3.71,-6.53L17,6L17,4h-7L10,2L8,2v2L1,4v1.99h11.17C11.5,7.92 10.44,9.75 9,11.35 8.07,10.32 7.3,9.19 6.69,8h-2c0.73,1.63 1.73,3.17 2.98,4.56l-5.09,5.02L4,19l5,-5 3.11,3.11 0.76,-2.04zM18.5,10h-2L12,22h2l1.12,-3h4.75L21,22h2l-4.5,-12zM15.88,17l1.62,-4.33L19.12,17h-3.24z"/>
|
||||
</vector>
|
||||
|
||||
@@ -6,4 +6,5 @@
|
||||
<item android:id="@+id/blue_color" android:title="@string/sk_color_theme_blue"/>
|
||||
<item android:id="@+id/orange_color" android:title="@string/sk_color_theme_brown"/>
|
||||
<item android:id="@+id/yellow_color" android:title="@string/sk_color_theme_yellow"/>
|
||||
<item android:id="@+id/m3_color" android:title="@string/sk_color_theme_material_you"/>
|
||||
</menu>
|
||||
@@ -17,4 +17,7 @@
|
||||
|
||||
<style name="Theme.Mastodon.AutoLightDark.Yellow" parent="Theme.Mastodon.Dark.Yellow"/>
|
||||
<style name="Theme.Mastodon.AutoLightDark.TrueBlack.Yellow" parent="Theme.Mastodon.Dark.TrueBlack.Yellow"/>
|
||||
|
||||
<style name="Theme.Mastodon.AutoLightDark.Material3" parent="Theme.Mastodon.Dark.Material3"/>
|
||||
<style name="Theme.Mastodon.AutoLightDark.TrueBlack.Material3" parent="Theme.Mastodon.Dark.TrueBlack.Material3"/>
|
||||
</resources>
|
||||
@@ -2,6 +2,35 @@
|
||||
<resources>
|
||||
<!-- M3 dynamic colors -->
|
||||
|
||||
<color name="m3_navigation_bar_bg">@android:color/system_neutral1_50</color>
|
||||
|
||||
<color name="m3_gray_900">@android:color/system_neutral1_900</color>
|
||||
<color name="m3_gray_800t">@android:color/system_neutral1_800</color>
|
||||
<color name="m3_gray_800">@android:color/system_neutral1_800</color>
|
||||
<color name="m3_gray_700">@android:color/system_neutral1_700</color>
|
||||
<color name="m3_gray_600">@android:color/system_neutral1_600</color>
|
||||
<color name="m3_gray_500">@android:color/system_neutral1_500</color>
|
||||
<color name="m3_gray_400">@android:color/system_neutral1_400</color>
|
||||
<color name="m3_gray_300">@android:color/system_neutral1_300</color>
|
||||
<color name="m3_gray_200">@android:color/system_neutral1_200</color>
|
||||
<color name="m3_gray_100">@android:color/system_neutral1_100</color>
|
||||
<color name="m3_gray_50t">@android:color/system_neutral1_50</color>
|
||||
<color name="m3_gray_50">@android:color/system_neutral1_50</color>
|
||||
<color name="m3_gray_25">@android:color/system_neutral1_10</color>
|
||||
|
||||
<color name="m3_primary_25">@android:color/system_accent1_10</color>
|
||||
<color name="m3_primary_50">@android:color/system_accent1_50</color>
|
||||
<color name="m3_primary_100">@android:color/system_accent1_100</color>
|
||||
<color name="m3_primary_200">@android:color/system_accent1_200</color>
|
||||
<color name="m3_primary_300">@android:color/system_accent1_300</color>
|
||||
<color name="m3_primary_400">@android:color/system_accent1_400</color>
|
||||
<color name="m3_primary_500">@android:color/system_accent1_500</color>
|
||||
<color name="m3_primary_600">@android:color/system_accent1_600</color>
|
||||
<color name="m3_primary_700">@android:color/system_accent1_700</color>
|
||||
<color name="m3_primary_800">@android:color/system_accent1_800</color>
|
||||
<color name="m3_primary_900">@android:color/system_accent1_900</color>
|
||||
|
||||
|
||||
<!-- light theme -->
|
||||
<color name="m3_sys_light_primary">@android:color/system_accent1_600</color>
|
||||
<color name="m3_sys_light_on_primary">#FFF</color>
|
||||
|
||||
@@ -47,4 +47,6 @@
|
||||
<string name="sk_color_theme_blue">Blue</string>
|
||||
<string name="sk_color_theme_brown">Orange</string>
|
||||
<string name="sk_color_theme_yellow">Yellow</string>
|
||||
<string name="sk_color_theme_material_you">Material You</string>
|
||||
<string name="sk_not_supported">Not supported on your device</string>
|
||||
</resources>
|
||||
|
||||
@@ -204,6 +204,122 @@
|
||||
<item name="colorBackgroundLightest">@color/black</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Mastodon.Light.Material3" parent="Theme.Mastodon.Light.CustomBase">
|
||||
<!-- needed to disable scrim on API 29+ -->
|
||||
<item name="android:colorPrimary">@color/m3_gray_800</item>
|
||||
<item name="android:textColorPrimary">@color/m3_gray_800</item>
|
||||
<item name="android:textColorSecondary">@color/m3_gray_500</item>
|
||||
<item name="colorDarkIcon">@color/m3_gray_900</item>
|
||||
<item name="colorSearchHint">@color/m3_gray_600</item>
|
||||
<item name="profileHeaderBackground">@color/m3_gray_500</item>
|
||||
|
||||
<item name="android:colorAccent">@color/m3_primary_700</item>
|
||||
<item name="android:colorBackground">@color/m3_gray_100</item>
|
||||
<item name="colorButtonText">@color/m3_gray_50</item>
|
||||
<item name="colorBackgroundLight">@color/m3_gray_50</item>
|
||||
<item name="colorBackgroundLightest">@color/m3_gray_25</item>
|
||||
<item name="android:statusBarColor">@color/m3_gray_50</item>
|
||||
<item name="android:navigationBarColor">@color/m3_navigation_bar_bg</item>
|
||||
<item name="android:actionBarTheme">@style/Theme.Mastodon.Toolbar.M3</item>
|
||||
<item name="android:alertDialogTheme">@style/Theme.Mastodon.Dialog.Alert.M3</item>
|
||||
<item name="colorPollMostVoted">@color/m3_primary_500</item>
|
||||
<item name="colorPollVoted">@color/m3_gray_300</item>
|
||||
<item name="colorAccentLight">@color/m3_primary_600</item>
|
||||
<item name="colorSearchField">@color/m3_gray_200</item>
|
||||
<item name="colorTabInactive">@color/m3_gray_400</item>
|
||||
<item name="colorAccentLightest">@color/m3_primary_100</item>
|
||||
<item name="colorSecondary">@color/m3_gray_50</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Mastodon.Dark.Material3" parent="Theme.Mastodon.Dark.CustomBase">
|
||||
<!-- needed to disable scrim on API 29+ -->
|
||||
<item name="android:colorBackground">@color/m3_gray_700</item>
|
||||
<item name="colorButtonText">@color/m3_gray_800</item>
|
||||
<item name="colorBackgroundLight">@color/m3_gray_700</item>
|
||||
<item name="colorBackgroundLightest">@color/m3_gray_900</item>
|
||||
<item name="colorBackgroundPopup">@color/m3_gray_900</item>
|
||||
<item name="colorDarkIcon">@color/m3_gray_25</item>
|
||||
<item name="colorWindowBackground">@color/m3_gray_800</item>
|
||||
<item name="android:statusBarColor">@color/m3_gray_800</item>
|
||||
<item name="android:navigationBarColor">@color/m3_gray_800</item>
|
||||
<item name="colorPollVoted">@color/m3_gray_600</item>
|
||||
<item name="profileHeaderBackground">?colorWindowBackground</item>
|
||||
<item name="android:actionBarTheme">@style/Theme.Mastodon.Toolbar.Dark.CustomBase</item>
|
||||
|
||||
<item name="android:colorAccent">@color/m3_primary_400</item>
|
||||
<item name="android:colorPrimary">@color/m3_gray_50</item>
|
||||
<item name="android:textColorPrimary">@color/m3_gray_50</item>
|
||||
<item name="android:textColorSecondary">@color/m3_gray_400</item>
|
||||
<item name="android:alertDialogTheme">@style/Theme.Mastodon.Dialog.Alert.Dark.M3</item>
|
||||
<item name="colorPollMostVoted">@color/m3_primary_700</item>
|
||||
<item name="colorAccentLight">@color/m3_primary_600</item>
|
||||
<item name="colorAccentLightest">@color/m3_primary_800</item>
|
||||
<item name="colorTabInactive">@color/m3_gray_400</item>
|
||||
<item name="colorSearchHint">@color/m3_gray_300</item>
|
||||
<item name="colorSecondary">@color/m3_gray_50</item>
|
||||
|
||||
<!-- TODO dark colors -->
|
||||
<item name="colorSearchField">@color/m3_gray_700</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Mastodon.Dark.TrueBlack.Material3" parent="Theme.Mastodon.Dark.Material3">
|
||||
<item name="android:colorAccent">@color/m3_primary_400</item>
|
||||
<item name="colorPollMostVoted">@color/m3_primary_700</item>
|
||||
<item name="colorAccentLight">@color/m3_primary_600</item>
|
||||
<item name="colorAccentLightest">@color/m3_primary_800</item>
|
||||
<item name="colorSecondary">@color/m3_gray_50</item>
|
||||
|
||||
<item name="colorPollVoted">@color/m3_gray_800</item>
|
||||
<item name="colorSearchField">@color/m3_gray_900</item>
|
||||
<item name="colorBackgroundPopup">@color/m3_gray_900</item>
|
||||
<item name="android:navigationBarColor">@color/black</item>
|
||||
<item name="android:colorBackground">@color/black</item>
|
||||
<item name="android:statusBarColor">@color/black</item>
|
||||
<item name="android:actionBarTheme">@style/Theme.Mastodon.Toolbar.Dark.TrueBlack</item>
|
||||
<item name="colorBackgroundLight">@color/black</item>
|
||||
<item name="colorWindowBackground">@color/black</item>
|
||||
<item name="colorButtonText">@color/black</item>
|
||||
<item name="colorBackgroundLightest">@color/black</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Mastodon.AutoLightDark.Material3" parent="Theme.Mastodon.Light.Material3"/>
|
||||
<style name="Theme.Mastodon.AutoLightDark.TrueBlack.Material3" parent="Theme.Mastodon.Light.Material3"/>
|
||||
|
||||
<style name="Theme.Mastodon.Dialog.Alert.Dark.M3" parent="android:Theme.Material.Dialog.Alert">
|
||||
<item name="android:windowTitleStyle">@style/alert_title</item>
|
||||
<item name="android:dialogPreferredPadding">24dp</item>
|
||||
<item name="android:windowBackground">@drawable/bg_alert</item>
|
||||
<item name="android:buttonBarButtonStyle">@style/Widget.Mastodon.ButtonBarButton</item>
|
||||
|
||||
<!-- colors -->
|
||||
<item name="android:colorAccent">@color/m3_primary_600</item>
|
||||
<item name="android:colorPrimary">@color/m3_gray_50</item>
|
||||
<item name="android:colorBackground">@color/m3_gray_700</item>
|
||||
<item name="android:textColorPrimary">@color/m3_gray_50</item>
|
||||
<item name="android:textColorSecondary">@color/m3_gray_400</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Mastodon.Dialog.Alert.M3" parent="android:Theme.Material.Light.Dialog.Alert">
|
||||
<item name="android:windowTitleStyle">@style/alert_title</item>
|
||||
<item name="android:dialogPreferredPadding">24dp</item>
|
||||
<item name="android:windowBackground">@drawable/bg_alert</item>
|
||||
<item name="android:buttonBarButtonStyle">@style/Widget.Mastodon.ButtonBarButton</item>
|
||||
|
||||
<!-- colors -->
|
||||
<item name="android:colorAccent">@color/m3_primary_700</item>
|
||||
<item name="android:colorPrimary">@color/m3_gray_800</item>
|
||||
<item name="android:colorBackground">@color/m3_gray_100</item>
|
||||
<item name="android:textColorPrimary">@color/m3_gray_800</item>
|
||||
<item name="android:textColorSecondary">@color/m3_gray_500</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Mastodon.Toolbar.M3" parent="android:ThemeOverlay.Material.ActionBar">
|
||||
<item name="android:colorPrimary">@color/m3_gray_50</item>
|
||||
<item name="android:textColorPrimary">@color/m3_gray_800</item>
|
||||
<item name="android:textColorSecondary">@color/m3_gray_800</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Theme.Mastodon.Light.Green" parent="Theme.Mastodon.Light.CustomBase">
|
||||
<item name="android:colorAccent">@color/green_primary_700</item>
|
||||
<item name="android:colorBackground">@color/green_gray_100</item>
|
||||
@@ -610,6 +726,12 @@
|
||||
<item name="android:textColorSecondary">@color/gray_50</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Mastodon.Toolbar.Dark.Material3" parent="android:ThemeOverlay.Material.Dark.ActionBar">
|
||||
<item name="android:colorPrimary">@color/m3_gray_800</item>
|
||||
<item name="android:textColorPrimary">@color/m3_gray_50</item>
|
||||
<item name="android:textColorSecondary">@color/m3_gray_50</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Mastodon.Toolbar.Dark.TrueBlack" parent="android:ThemeOverlay.Material.Dark.ActionBar">
|
||||
<item name="android:colorPrimary">@color/black</item>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user