Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98dd9491 authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

Merge branch 'Issue-2835_Implement_dark_mode' into 'master'

2835-P,Q-Dark mode implementation

See merge request e/apps/apps!62
parents ca5c2507 123b2379
Loading
Loading
Loading
Loading
Loading
+404 B (122 KiB)

File changed.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+1 −3
Original line number Diff line number Diff line
@@ -119,8 +119,6 @@ class ApplicationActivity :
        }

        // Set accent color
        binding.installButtonLayout.appInstall.setTextColor(Color.parseColor("#ffffff"))
        binding.installButtonLayout.appInstall.background.colorFilter = PorterDuffColorFilter(accentColorOS, PorterDuff.Mode.SRC_IN)
        binding.appDownloadProgress.progressDrawable.colorFilter = PorterDuffColorFilter(accentColorOS, PorterDuff.Mode.SRC_IN)
        binding.appCategory.setTextColor(accentColorOS)
        binding.appExpandDescription.setTextColor(accentColorOS)
@@ -205,7 +203,7 @@ class ApplicationActivity :
    private fun textColorChange(text: String): SpannableStringBuilder {
        val builder = SpannableStringBuilder();
        val redSpannable = SpannableString(text);
        redSpannable.setSpan(ForegroundColorSpan(R.color.colorDarkGray), 0, text.length, 0);
        redSpannable.setSpan(ForegroundColorSpan(R.color.colorTextSecondary), 0, text.length, 0);
        builder.append(redSpannable);
        return builder
    }
+0 −4
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@

package foundation.e.apps.categories

import android.graphics.Color
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
@@ -42,9 +41,6 @@ class CategoriesFragment : Fragment() {
        viewPager.adapter = CategoriesViewPagerAdapter(requireActivity().supportFragmentManager, tabLayout.tabCount, color)
        viewPager.addOnPageChangeListener(TabLayout.TabLayoutOnPageChangeListener(tabLayout))

        tabLayout.setSelectedTabIndicatorColor(color);
        tabLayout.setTabTextColors(Color.parseColor("#000000"), color);

        tabLayout.addOnTabSelectedListener(object : TabLayout.OnTabSelectedListener {
            override fun onTabSelected(tab: TabLayout.Tab) {
                viewPager.currentItem = tab.position
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ class SearchFragment : Fragment(), SearchView.OnQueryTextListener, SearchView.On
        val from = arrayOf(SUGGESTION_KEY)
        val to = intArrayOf(android.R.id.text1)
        searchView.suggestionsAdapter = SimpleCursorAdapter(context,
                android.R.layout.simple_list_item_1, null, from, to,
                R.layout.custom_simple_list_item, null, from, to,
                CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER)

        // Initialise recycler view
+1 −1
Original line number Diff line number Diff line
@@ -21,6 +21,6 @@

    <stroke
        android:width="1dp"
        android:color="@color/colorBorder"
        android:color="@color/colorAccent"
        />
</shape>
 No newline at end of file
Loading