diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 diff --git a/wows/src/main/java/com/half/wowsca/CAApp.kt b/wows/src/main/java/com/half/wowsca/CAApp.kt index 3e208e4..b92893f 100644 --- a/wows/src/main/java/com/half/wowsca/CAApp.kt +++ b/wows/src/main/java/com/half/wowsca/CAApp.kt @@ -87,30 +87,36 @@ class CAApp : Application() { @JvmStatic fun setTheme(act: FragmentActivity) { - val theme = getTheme(act) - if (theme == "ocean") { //dark theme - act.setTheme(R.style.Theme_CA_Material_Ocean) - } else if (theme == "dark") { - act.setTheme(R.style.Theme_CA_Material_Dark) + // Use single Material 3 DayNight theme with dynamic colors + // The system automatically handles: + // - Light/dark mode based on system settings + // - Dynamic colors on Android 12+ (Material You) + // - Fallback colors on older Android versions + act.setTheme(R.style.Theme_CA_Material_Dark) + } } } - @JvmStatic + @JvmStatic fun isOceanTheme(ctx: Context?): Boolean { - val theme = getTheme(ctx) - return theme == "ocean" + // Ocean theme is no longer used - we use Material 3 DayNight theme + return false } @JvmStatic fun isDarkTheme(ctx: Context?): Boolean { - val theme = getTheme(ctx) - return theme == "dark" + if (ctx == null) return true + // Check if system is in dark mode + return (ctx.resources.configuration.uiMode and + android.content.res.Configuration.UI_MODE_NIGHT_MASK) == + android.content.res.Configuration.UI_MODE_NIGHT_YES } @JvmStatic fun getTheme(ctx: Context?): String? { - val prefs = Prefs(ctx) - return prefs.getString(SettingActivity.THEME_CHOICE, "ocean") + if (ctx == null) return "dark" + // Return based on system theme + return if (isDarkTheme(ctx)) "dark" else "light" } @JvmStatic diff --git a/wows/src/main/java/com/half/wowsca/ui/AuthenticationActivity.kt b/wows/src/main/java/com/half/wowsca/ui/AuthenticationActivity.kt index 4079133..6dd6fcd 100644 --- a/wows/src/main/java/com/half/wowsca/ui/AuthenticationActivity.kt +++ b/wows/src/main/java/com/half/wowsca/ui/AuthenticationActivity.kt @@ -42,6 +42,11 @@ class AuthenticationActivity : CABaseActivity() { supportActionBar!!.setDisplayHomeAsUpEnabled(true) title = getString(R.string.login) + // Apply Edge-to-Edge insets + applyEdgeToEdgeInsets() + val container = findViewById(R.id.auth_container) + applyEdgeToEdgeInsetsToContainer(container) + swipeBackLayout!!.setEdgeTrackingEnabled(SwipeBackLayout.EDGE_LEFT) } diff --git a/wows/src/main/java/com/half/wowsca/ui/CABaseActivity.kt b/wows/src/main/java/com/half/wowsca/ui/CABaseActivity.kt index 9a927a9..a486ea0 100644 --- a/wows/src/main/java/com/half/wowsca/ui/CABaseActivity.kt +++ b/wows/src/main/java/com/half/wowsca/ui/CABaseActivity.kt @@ -3,6 +3,7 @@ package com.half.wowsca.ui import android.content.res.Configuration import android.os.Bundle import androidx.appcompat.widget.Toolbar +import androidx.core.view.WindowCompat import androidx.fragment.app.FragmentManager import com.half.wowsca.CAApp.Companion.getAppLanguage import com.half.wowsca.CAApp.Companion.isDarkTheme @@ -26,6 +27,10 @@ open class CABaseActivity : SwipeBackBaseActivity() { // protected TextView tvKarma; override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) + + // Enable Edge-to-Edge + WindowCompat.setDecorFitsSystemWindows(window, false) + setTheme(this) val current = getAppLanguage(applicationContext) val myLocale = Locale(current) @@ -44,6 +49,56 @@ open class CABaseActivity : SwipeBackBaseActivity() { R.style.WoWSCAThemeToolbarDarkOverflow } + /** + * Apply window insets to a toolbar to handle Edge-to-Edge properly. + * Call this after setting the toolbar in your activity. + */ + protected fun applyEdgeToEdgeInsets() { + mToolbar?.let { toolbar -> + // Capture original padding + val originalPaddingLeft = toolbar.paddingLeft + val originalPaddingTop = toolbar.paddingTop + val originalPaddingRight = toolbar.paddingRight + val originalPaddingBottom = toolbar.paddingBottom + + androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(toolbar) { view, windowInsets -> + val insets = windowInsets.getInsets(androidx.core.view.WindowInsetsCompat.Type.systemBars()) + view.setPadding( + originalPaddingLeft + insets.left, + originalPaddingTop + insets.top, + originalPaddingRight + insets.right, + originalPaddingBottom + ) + windowInsets + } + } + } + + /** + * Apply window insets to the container/content view to handle Edge-to-Edge properly. + * @param containerView The main content view that should respect navigation bar insets + */ + protected fun applyEdgeToEdgeInsetsToContainer(containerView: android.view.View?) { + containerView?.let { view -> + // Capture original padding + val originalPaddingLeft = view.paddingLeft + val originalPaddingTop = view.paddingTop + val originalPaddingRight = view.paddingRight + val originalPaddingBottom = view.paddingBottom + + androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(view) { v, windowInsets -> + val insets = windowInsets.getInsets(androidx.core.view.WindowInsetsCompat.Type.systemBars()) + v.setPadding( + originalPaddingLeft + insets.left, + originalPaddingTop, + originalPaddingRight + insets.right, + originalPaddingBottom + insets.bottom + ) + windowInsets + } + } + } + protected fun initBackStackListener() { backStackListener = FragmentManager.OnBackStackChangedListener { invalidateOptionsMenu() diff --git a/wows/src/main/java/com/half/wowsca/ui/InformationActivity.kt b/wows/src/main/java/com/half/wowsca/ui/InformationActivity.kt index 819eca8..2965f27 100644 --- a/wows/src/main/java/com/half/wowsca/ui/InformationActivity.kt +++ b/wows/src/main/java/com/half/wowsca/ui/InformationActivity.kt @@ -18,6 +18,12 @@ class InformationActivity : CABaseActivity() { setSupportActionBar(bar) supportActionBar!!.setDisplayHomeAsUpEnabled(true) + + // Apply Edge-to-Edge insets + applyEdgeToEdgeInsets() + val scrollView = findViewById(R.id.info_scroll_view) + applyEdgeToEdgeInsetsToContainer(scrollView) + swipeBackLayout!!.setEdgeTrackingEnabled(SwipeBackLayout.EDGE_LEFT) } diff --git a/wows/src/main/java/com/half/wowsca/ui/MainActivity.kt b/wows/src/main/java/com/half/wowsca/ui/MainActivity.kt index 930bdc9..985ab11 100644 --- a/wows/src/main/java/com/half/wowsca/ui/MainActivity.kt +++ b/wows/src/main/java/com/half/wowsca/ui/MainActivity.kt @@ -77,6 +77,13 @@ class MainActivity : CABaseActivity(), ICaptain { // tvKarma = (TextView) findViewById(R.id.toolbar_text); setSupportActionBar(mToolbar) + // Apply Edge-to-Edge insets to toolbar + applyEdgeToEdgeInsets() + + // Apply Edge-to-Edge insets to container for navigation bar + val container = findViewById(R.id.container) + applyEdgeToEdgeInsetsToContainer(container) + setUpDrawer() initBackStackListener() diff --git a/wows/src/main/java/com/half/wowsca/ui/ResourcesActivity.kt b/wows/src/main/java/com/half/wowsca/ui/ResourcesActivity.kt index c66581e..3c6f26d 100644 --- a/wows/src/main/java/com/half/wowsca/ui/ResourcesActivity.kt +++ b/wows/src/main/java/com/half/wowsca/ui/ResourcesActivity.kt @@ -102,6 +102,11 @@ class ResourcesActivity : CABaseActivity() { supportActionBar!!.setDisplayHomeAsUpEnabled(true) supportActionBar!!.setHomeButtonEnabled(true) + // Apply Edge-to-Edge insets + applyEdgeToEdgeInsets() + val container = findViewById(R.id.resources_main_container) + applyEdgeToEdgeInsetsToContainer(container) + if (!TextUtils.isEmpty(type)) { if (type == EXTRA_WEBSITES_TOOLS) { title = getString(R.string.resources_websites) diff --git a/wows/src/main/java/com/half/wowsca/ui/SearchActivity.kt b/wows/src/main/java/com/half/wowsca/ui/SearchActivity.kt index f09359a..f724c13 100644 --- a/wows/src/main/java/com/half/wowsca/ui/SearchActivity.kt +++ b/wows/src/main/java/com/half/wowsca/ui/SearchActivity.kt @@ -95,6 +95,11 @@ class SearchActivity : CABaseActivity() { supportActionBar!!.setDisplayHomeAsUpEnabled(true) supportActionBar!!.setHomeButtonEnabled(true) + // Apply Edge-to-Edge insets + applyEdgeToEdgeInsets() + val container = findViewById(R.id.search_content_container) + applyEdgeToEdgeInsetsToContainer(container) + etSearch = findViewById(R.id.search_et) as EditText? delete = findViewById(R.id.search_et_delete) sServers = findViewById(R.id.search_server_spinner) as Spinner? diff --git a/wows/src/main/java/com/half/wowsca/ui/SettingActivity.kt b/wows/src/main/java/com/half/wowsca/ui/SettingActivity.kt index 7ade37a..0acc987 100644 --- a/wows/src/main/java/com/half/wowsca/ui/SettingActivity.kt +++ b/wows/src/main/java/com/half/wowsca/ui/SettingActivity.kt @@ -128,6 +128,11 @@ class SettingActivity : CABaseActivity() { supportActionBar!!.setDisplayHomeAsUpEnabled(true) supportActionBar!!.setHomeButtonEnabled(true) + // Apply Edge-to-Edge insets + applyEdgeToEdgeInsets() + val scrollView = findViewById(R.id.settings_scroll_view) + applyEdgeToEdgeInsetsToContainer(scrollView) + aColorblind = findViewById(R.id.settings_colorblind_area) cbColorblind = findViewById(R.id.settings_colorblind_checkbox) as CheckBox? @@ -189,7 +194,8 @@ class SettingActivity : CABaseActivity() { initServerLangauge() - initTheme() + // Theme selection removed - now uses system auto-detect (Android 12+) or navy fallback + // initTheme() initServer() diff --git a/wows/src/main/java/com/half/wowsca/ui/SplashActivity.kt b/wows/src/main/java/com/half/wowsca/ui/SplashActivity.kt index 606e2a6..23076b7 100644 --- a/wows/src/main/java/com/half/wowsca/ui/SplashActivity.kt +++ b/wows/src/main/java/com/half/wowsca/ui/SplashActivity.kt @@ -66,6 +66,21 @@ class SplashActivity : CABaseActivity() { iv = findViewById(R.id.imageView) as ImageView? Picasso.get().load(R.drawable.web_hi_res_512).into(iv) + // Apply Edge-to-Edge insets to root layout + val rootView = findViewById(android.R.id.content) + rootView?.let { view -> + androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(view) { v, windowInsets -> + val insets = windowInsets.getInsets(androidx.core.view.WindowInsetsCompat.Type.systemBars()) + v.setPadding( + insets.left, + insets.top, + insets.right, + insets.bottom + ) + windowInsets + } + } + swipeBackLayout!!.setEnableGesture(false) } diff --git a/wows/src/main/java/com/half/wowsca/ui/adapter/ExpandableStatsAdapter.kt b/wows/src/main/java/com/half/wowsca/ui/adapter/ExpandableStatsAdapter.kt index 3ba965d..eac5862 100644 --- a/wows/src/main/java/com/half/wowsca/ui/adapter/ExpandableStatsAdapter.kt +++ b/wows/src/main/java/com/half/wowsca/ui/adapter/ExpandableStatsAdapter.kt @@ -145,13 +145,13 @@ class ExpandableStatsAdapter( xVals.add(child.titles[i]) val key = child.types[i] if (key.equals("cruiser", ignoreCase = true)) { - colorList.add(Color.parseColor("#4CAF50")) + colorList.add(ContextCompat.getColor(ctx, R.color.chart_green)) } else if (key.equals("battleship", ignoreCase = true)) { - colorList.add(Color.parseColor("#F44336")) + colorList.add(ContextCompat.getColor(ctx, R.color.chart_red)) } else if (key.equals("aircarrier", ignoreCase = true)) { - colorList.add(Color.parseColor("#673AB7")) + colorList.add(ContextCompat.getColor(ctx, R.color.chart_purple)) } else if (key.equals("destroyer", ignoreCase = true)) { - colorList.add(Color.parseColor("#FDD835")) + colorList.add(ContextCompat.getColor(ctx, R.color.chart_yellow)) } } diff --git a/wows/src/main/java/com/half/wowsca/ui/compare/CompareActivity.kt b/wows/src/main/java/com/half/wowsca/ui/compare/CompareActivity.kt index a8c254f..79bb33d 100644 --- a/wows/src/main/java/com/half/wowsca/ui/compare/CompareActivity.kt +++ b/wows/src/main/java/com/half/wowsca/ui/compare/CompareActivity.kt @@ -63,6 +63,11 @@ class CompareActivity : CABaseActivity() { supportActionBar!!.setDisplayHomeAsUpEnabled(true) supportActionBar!!.setHomeButtonEnabled(true) + // Apply Edge-to-Edge insets + applyEdgeToEdgeInsets() + val scrollView = findViewById(R.id.compare_scroll) + applyEdgeToEdgeInsetsToContainer(scrollView) + container = findViewById(R.id.compare_container) as LinearLayout? progressBar = findViewById(R.id.compare_progress) tvErrorText = findViewById(R.id.compare_middle_text) as TextView? diff --git a/wows/src/main/java/com/half/wowsca/ui/compare/ShipCompareActivity.kt b/wows/src/main/java/com/half/wowsca/ui/compare/ShipCompareActivity.kt index d69e970..56149fc 100644 --- a/wows/src/main/java/com/half/wowsca/ui/compare/ShipCompareActivity.kt +++ b/wows/src/main/java/com/half/wowsca/ui/compare/ShipCompareActivity.kt @@ -52,6 +52,11 @@ class ShipCompareActivity : CABaseActivity() { supportActionBar!!.setHomeButtonEnabled(true) supportActionBar!!.setTitle(R.string.ship_compare_title) + // Apply Edge-to-Edge insets + applyEdgeToEdgeInsets() + val container = findViewById(R.id.ship_compare_container) + applyEdgeToEdgeInsetsToContainer(container) + progress = findViewById(R.id.activity_compare_ships_progress) pagerTabs = findViewById(R.id.ship_compare_pager_tab) as SlidingTabLayout? mViewPager = findViewById(R.id.ship_compare_tabbed_pager) as ViewPager? diff --git a/wows/src/main/java/com/half/wowsca/ui/encyclopedia/EncyclopediaTabbedActivity.kt b/wows/src/main/java/com/half/wowsca/ui/encyclopedia/EncyclopediaTabbedActivity.kt index e16aa7b..20ceb32 100644 --- a/wows/src/main/java/com/half/wowsca/ui/encyclopedia/EncyclopediaTabbedActivity.kt +++ b/wows/src/main/java/com/half/wowsca/ui/encyclopedia/EncyclopediaTabbedActivity.kt @@ -49,6 +49,11 @@ class EncyclopediaTabbedActivity : CABaseActivity() { supportActionBar!!.setDisplayHomeAsUpEnabled(true) supportActionBar!!.setHomeButtonEnabled(true) + // Apply Edge-to-Edge insets + applyEdgeToEdgeInsets() + val container = findViewById(R.id.encyclopedia_container) + applyEdgeToEdgeInsetsToContainer(container) + mViewPager = findViewById(R.id.encyclopedia_pager) as ViewPager? pager = ShipopediaPager(supportFragmentManager) val iconResourceArray = arrayOf( diff --git a/wows/src/main/java/com/half/wowsca/ui/encyclopedia/ShipProfileActivity.kt b/wows/src/main/java/com/half/wowsca/ui/encyclopedia/ShipProfileActivity.kt index e07c285..ea1712b 100644 --- a/wows/src/main/java/com/half/wowsca/ui/encyclopedia/ShipProfileActivity.kt +++ b/wows/src/main/java/com/half/wowsca/ui/encyclopedia/ShipProfileActivity.kt @@ -160,6 +160,11 @@ class ShipProfileActivity : CABaseActivity() { supportActionBar!!.setHomeButtonEnabled(true) title = "" + // Apply Edge-to-Edge insets + applyEdgeToEdgeInsets() + val scrollView = findViewById(R.id.encyclopedia_scroll) + applyEdgeToEdgeInsetsToContainer(scrollView) + scroll = findViewById(R.id.encyclopedia_scroll) as ScrollView? progress = findViewById(R.id.encyclopedia_progress) diff --git a/wows/src/main/java/com/half/wowsca/ui/encyclopedia/tabs/FlagsFragment.kt b/wows/src/main/java/com/half/wowsca/ui/encyclopedia/tabs/FlagsFragment.kt index b638e8d..945e3c2 100644 --- a/wows/src/main/java/com/half/wowsca/ui/encyclopedia/tabs/FlagsFragment.kt +++ b/wows/src/main/java/com/half/wowsca/ui/encyclopedia/tabs/FlagsFragment.kt @@ -94,11 +94,12 @@ class FlagsFragment : CAFragment() { } } val d = ContextCompat.getDrawable(requireContext(), R.drawable.ic_flags) - if (!isDarkTheme(context)) d!!.setColorFilter( + // Apply theme-aware icon tint + d!!.setColorFilter( ContextCompat.getColor( requireContext(), - R.color.top_background - ), PorterDuff.Mode.MULTIPLY + R.color.icon_tint_color + ), PorterDuff.Mode.SRC_IN ) createGeneralAlert(activity, item.name, sb.toString(), getString(R.string.dismiss), d) } else { diff --git a/wows/src/main/java/com/half/wowsca/ui/viewcaptain/ViewCaptainActivity.kt b/wows/src/main/java/com/half/wowsca/ui/viewcaptain/ViewCaptainActivity.kt index 1d06df1..3734a36 100644 --- a/wows/src/main/java/com/half/wowsca/ui/viewcaptain/ViewCaptainActivity.kt +++ b/wows/src/main/java/com/half/wowsca/ui/viewcaptain/ViewCaptainActivity.kt @@ -80,6 +80,11 @@ class ViewCaptainActivity : CABaseActivity(), ICaptain { supportActionBar!!.setDisplayHomeAsUpEnabled(true) supportActionBar!!.setHomeButtonEnabled(true) + // Apply Edge-to-Edge insets + applyEdgeToEdgeInsets() + val container = findViewById(R.id.container) + applyEdgeToEdgeInsetsToContainer(container) + initBackStackListener() swipeBackLayout!!.setEdgeTrackingEnabled(SwipeBackLayout.EDGE_LEFT) } diff --git a/wows/src/main/java/com/half/wowsca/ui/viewcaptain/tabs/CaptainFragment.kt b/wows/src/main/java/com/half/wowsca/ui/viewcaptain/tabs/CaptainFragment.kt index ca928a5..4730d2c 100644 --- a/wows/src/main/java/com/half/wowsca/ui/viewcaptain/tabs/CaptainFragment.kt +++ b/wows/src/main/java/com/half/wowsca/ui/viewcaptain/tabs/CaptainFragment.kt @@ -1351,23 +1351,23 @@ class CaptainFragment : CAFragment() { val key = itea.next() xVals.add(key) if (key == "ussr") { - colorList.add(Color.parseColor("#F44336")) // RED + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_red)) // RED } else if (key == "germany") { - colorList.add(Color.parseColor("#9E9E9E")) // blackish + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_grey)) // blackish } else if (key == "usa") { - colorList.add(Color.parseColor("#2196F3")) // Blue + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_blue)) // Blue } else if (key == "poland") { - colorList.add(Color.parseColor("#FAFA00")) // yellow + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_bright_yellow)) // yellow } else if (key == "japan") { - colorList.add(Color.parseColor("#4CAF50")) // Green + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_green)) // Green } else if (key == "uk") { - colorList.add(Color.parseColor("#E1F5FE")) // whiteish blue + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_light_blue)) // whiteish blue } } - colorList.add(Color.parseColor("#AAE157")) - colorList.add(Color.parseColor("#FF9800")) - colorList.add(Color.parseColor("#22FFCB")) - colorList.add(Color.parseColor("#795548")) + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_lime)) + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_orange)) + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_cyan)) + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_brown)) val yVals1 = ArrayList() for (i in xVals.indices) { @@ -1450,19 +1450,19 @@ class CaptainFragment : CAFragment() { while (itea.hasNext()) { val key = itea.next() if (key.equals("cruiser", ignoreCase = true)) { - colorList.add(Color.parseColor("#4CAF50")) + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_green)) } else if (key.equals("battleship", ignoreCase = true)) { - colorList.add(Color.parseColor("#F44336")) + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_red)) } else if (key.equals("aircarrier", ignoreCase = true)) { - colorList.add(Color.parseColor("#673AB7")) + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_purple)) } else if (key.equals("destroyer", ignoreCase = true)) { - colorList.add(Color.parseColor("#FDD835")) + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_yellow)) } xVals.add(key) } - colorList.add(Color.parseColor("#009688")) - colorList.add(Color.parseColor("#795548")) + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_teal)) + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_brown)) val yVals1 = ArrayList() for (i in xVals.indices) { @@ -1774,16 +1774,16 @@ class CaptainFragment : CAFragment() { yAxis2.textColor = textColor val colorList: MutableList = ArrayList() - colorList.add(Color.parseColor("#F44336")) - colorList.add(Color.parseColor("#FF9800")) + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_red)) + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_orange)) colorList.add( ContextCompat.getColor( chartSurvivalRate!!.context, R.color.average_up ) ) - colorList.add(Color.parseColor("#2196F3")) - colorList.add(Color.parseColor("#FAFA00")) + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_blue)) + colorList.add(ContextCompat.getColor(requireContext(), R.color.chart_bright_yellow)) val l = chartSurvivalRate!!.legend l.isEnabled = false diff --git a/wows/src/main/res/drawable/background.xml b/wows/src/main/res/drawable/background.xml index 9c5016a..8ddad7c 100644 --- a/wows/src/main/res/drawable/background.xml +++ b/wows/src/main/res/drawable/background.xml @@ -2,7 +2,7 @@ - + \ No newline at end of file diff --git a/wows/src/main/res/drawable/progress_bar.xml b/wows/src/main/res/drawable/progress_bar.xml index 5415970..1df3520 100644 --- a/wows/src/main/res/drawable/progress_bar.xml +++ b/wows/src/main/res/drawable/progress_bar.xml @@ -5,10 +5,10 @@ + android:endColor="@color/progress_bg_end" + android:startColor="@color/progress_bg_start" /> @@ -18,10 +18,10 @@ + android:endColor="@color/progress_secondary_end" + android:startColor="@color/progress_secondary_start" /> @@ -31,8 +31,8 @@ + android:endColor="@color/progress_end" + android:startColor="@color/progress_start" /> diff --git a/wows/src/main/res/layout/activity_auth.xml b/wows/src/main/res/layout/activity_auth.xml index 163cc41..ba94d82 100644 --- a/wows/src/main/res/layout/activity_auth.xml +++ b/wows/src/main/res/layout/activity_auth.xml @@ -17,6 +17,7 @@ diff --git a/wows/src/main/res/layout/activity_compare_ships.xml b/wows/src/main/res/layout/activity_compare_ships.xml index e1d79a3..73f8de1 100644 --- a/wows/src/main/res/layout/activity_compare_ships.xml +++ b/wows/src/main/res/layout/activity_compare_ships.xml @@ -1,5 +1,6 @@ diff --git a/wows/src/main/res/layout/activity_encyclopedia.xml b/wows/src/main/res/layout/activity_encyclopedia.xml index effb942..76bcd0c 100644 --- a/wows/src/main/res/layout/activity_encyclopedia.xml +++ b/wows/src/main/res/layout/activity_encyclopedia.xml @@ -1,5 +1,6 @@ diff --git a/wows/src/main/res/layout/activity_information.xml b/wows/src/main/res/layout/activity_information.xml index 91d788c..c3c20fc 100644 --- a/wows/src/main/res/layout/activity_information.xml +++ b/wows/src/main/res/layout/activity_information.xml @@ -15,6 +15,7 @@ android:minHeight="?attr/actionBarSize"> diff --git a/wows/src/main/res/layout/activity_resources.xml b/wows/src/main/res/layout/activity_resources.xml index 565358f..3d2279e 100644 --- a/wows/src/main/res/layout/activity_resources.xml +++ b/wows/src/main/res/layout/activity_resources.xml @@ -1,6 +1,7 @@ diff --git a/wows/src/main/res/layout/activity_search.xml b/wows/src/main/res/layout/activity_search.xml index 23ed2e8..94e8b4f 100644 --- a/wows/src/main/res/layout/activity_search.xml +++ b/wows/src/main/res/layout/activity_search.xml @@ -60,6 +60,7 @@ diff --git a/wows/src/main/res/layout/activity_setting.xml b/wows/src/main/res/layout/activity_setting.xml index 939bf04..a223ae3 100644 --- a/wows/src/main/res/layout/activity_setting.xml +++ b/wows/src/main/res/layout/activity_setting.xml @@ -17,6 +17,7 @@ @@ -41,7 +42,8 @@ android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginTop="10dp" - android:orientation="horizontal"> + android:orientation="horizontal" + android:visibility="gone"> + + + + + + @color/material_text_primary + @color/material_text_secondary + + + @color/material_text_primary + + diff --git a/wows/src/main/res/values/colors.xml b/wows/src/main/res/values/colors.xml index df1d022..4da0b6d 100644 --- a/wows/src/main/res/values/colors.xml +++ b/wows/src/main/res/values/colors.xml @@ -24,6 +24,10 @@ #FF3E95DC #FF163F6E + + @color/top_background + @color/bottom_background + #000000 #FFFFFF #00000000 @@ -65,5 +69,145 @@ #FAFA00 #CCCCCC + + #FFFFFF + #E8F5E9 + #FFFFFF + + + #424242 + #FFFFFF + #FFFFFF + #B3FFFFFF + #80FFFFFF + #1FFFFFFF + #E8F5E9 + #FFFFFF + + + #3E95DC + #FFFFFF + #D1E4FF + #001D36 + #163F6E + #FFFFFF + #C8E6FF + #001E30 + #448AFF + #FFFFFF + #D6E3FF + #001849 + #BA1A1A + #FFDAD6 + #FFFFFF + #410002 + #1A1C1E + #E2E2E6 + #1A1C1E + #E2E2E6 + #42474E + #C2C7CF + #8C9199 + #1A1C1E + #E2E2E6 + #3E95DC + #000000 + #3E95DC + #42474E + #000000 + + + #448AFF + #FFFFFF + #1565C0 + #BBDEFB + #4CAF50 + #FFFFFF + #1B5E20 + #C8E6C9 + #FF9800 + #000000 + #E65100 + #FFE0B2 + #F44336 + #B71C1C + #FFFFFF + #FFCDD2 + #000000 + #E0E0E0 + #121212 + #E0E0E0 + #1E1E1E + #BDBDBD + #757575 + #000000 + #E0E0E0 + #448AFF + #000000 + #448AFF + #424242 + #000000 + + + #1976D2 + #FFFFFF + #BBDEFB + #0D47A1 + #388E3C + #FFFFFF + #C8E6C9 + #1B5E20 + #F57C00 + #FFFFFF + #FFE0B2 + #E65100 + #B00020 + #FDECEA + #FFFFFF + #370B1E + #FAFAFA + #1A1C1E + #FFFFFF + #1A1C1E + #E0E0E0 + #424242 + #757575 + #F5F5F5 + #303030 + #82B1FF + #000000 + #1976D2 + #BDBDBD + #000000 + + + #4CAF50 + #F44336 + #673AB7 + #FDD835 + #9E9E9E + #2196F3 + #FAFA00 + #E1F5FE + #AAE157 + #FF9800 + #22FFCB + #795548 + #009688 + + + #ff9d9e9d + #ff5a5d5a + #ff747674 + #80ffd300 + #80ffb600 + #a0ffcb00 + #4CAF50 + #43A047 + + + @color/black + @color/black_transparent + @color/black \ No newline at end of file diff --git a/wows/src/main/res/values/styles_ca.xml b/wows/src/main/res/values/styles_ca.xml index fca7776..8db6873 100644 --- a/wows/src/main/res/values/styles_ca.xml +++ b/wows/src/main/res/values/styles_ca.xml @@ -6,9 +6,9 @@ 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. @@ -19,11 +19,29 @@ - --> - - + + + + + + + +