Browse Source

(WIP)

- fixed drawables
pull/529/head
Twig N 5 years ago
parent
commit
7587b23469
  1. 6
      app/src/main/java/org/transdroid/core/gui/DetailsFragment.java
  2. 6
      app/src/main/java/org/transdroid/core/gui/search/SearchResultsFragment.java
  3. 2
      app/src/main/res/values-night/styles_transdroid.xml
  4. 2
      app/src/main/res/values/styles_transdroid.xml

6
app/src/main/java/org/transdroid/core/gui/DetailsFragment.java

@ -122,11 +122,7 @@ public class DetailsFragment extends Fragment implements OnTrackersUpdatedListen
// On large screens where this fragment is shown next to the torrents list, we show a continues grey vertical // On large screens where this fragment is shown next to the torrents list, we show a continues grey vertical
// line to separate the lists visually // line to separate the lists visually
if (!NavigationHelper_.getInstance_(getActivity()).isSmallScreen()) { if (!NavigationHelper_.getInstance_(getActivity()).isSmallScreen()) {
if (SystemSettings_.getInstance_(getActivity()).useDarkTheme()) { detailsContainer.setBackgroundResource(R.drawable.details_list_background);
detailsContainer.setBackgroundResource(R.drawable.details_list_background_dark);
} else {
detailsContainer.setBackgroundResource(R.drawable.details_list_background_light);
}
} }
createMenuOptions(); createMenuOptions();

6
app/src/main/java/org/transdroid/core/gui/search/SearchResultsFragment.java

@ -86,11 +86,7 @@ public class SearchResultsFragment extends Fragment {
// On large screens where this fragment is shown next to the sites list; we show a continues grey vertical line // On large screens where this fragment is shown next to the sites list; we show a continues grey vertical line
// to separate the lists visually // to separate the lists visually
if (!NavigationHelper_.getInstance_(getActivity()).isSmallScreen()) { if (!NavigationHelper_.getInstance_(getActivity()).isSmallScreen()) {
if (SystemSettings_.getInstance_(getActivity()).useDarkTheme()) { resultsList.setBackgroundResource(R.drawable.details_list_background);
resultsList.setBackgroundResource(R.drawable.details_list_background_dark);
} else {
resultsList.setBackgroundResource(R.drawable.details_list_background_light);
}
} }
// Set up the list adapter, which allows multi-select // Set up the list adapter, which allows multi-select

2
app/src/main/res/values-night/styles_transdroid.xml

@ -28,7 +28,7 @@
<item name="actionModeBackground">@color/grey</item> <item name="actionModeBackground">@color/grey</item>
<item name="android:textViewStyle">@style/DefaultTextView</item> <item name="android:textViewStyle">@style/DefaultTextView</item>
<item name="android:windowBackground">@color/transdroid_background</item> <item name="android:windowBackground">@color/transdroid_background</item>
<item name="loading_progress">@drawable/loading_progress_dark</item> <item name="loading_progress">@drawable/loading_progress</item>
<item name="text_bright">@color/transdroid_text_bright</item> <item name="text_bright">@color/transdroid_text_bright</item>
<item name="text_actionbar">@color/transdroid_text_actionbar</item> <item name="text_actionbar">@color/transdroid_text_actionbar</item>
<item name="text_actionbar_secondary">@color/transdroid_text_actionbar</item> <item name="text_actionbar_secondary">@color/transdroid_text_actionbar</item>

2
app/src/main/res/values/styles_transdroid.xml

@ -30,7 +30,7 @@
<item name="actionModeBackground">@color/grey</item> <item name="actionModeBackground">@color/grey</item>
<item name="android:textViewStyle">@style/DefaultTextView</item> <item name="android:textViewStyle">@style/DefaultTextView</item>
<item name="android:windowBackground">@color/transdroid_background</item> <item name="android:windowBackground">@color/transdroid_background</item>
<item name="loading_progress">@drawable/loading_progress_light</item> <item name="loading_progress">@drawable/loading_progress</item>
<item name="text_bright">@color/transdroid_text_bright</item> <item name="text_bright">@color/transdroid_text_bright</item>
<item name="text_actionbar">@color/transdroid_text_actionbar</item> <item name="text_actionbar">@color/transdroid_text_actionbar</item>
<item name="text_actionbar_secondary">@color/transdroid_text_actionbar</item> <item name="text_actionbar_secondary">@color/transdroid_text_actionbar</item>

Loading…
Cancel
Save