More dark more fixes

Fixes some leftover items missed in the previous major update.
* Donate view in AppDetails
* What's new view in AppDetails
* The search view
This commit is contained in:
Chirayu Desai 2017-04-21 00:56:09 +05:30
parent 9703589950
commit 9f50bef04f
6 changed files with 12 additions and 4 deletions

View File

@ -18,6 +18,7 @@ import android.view.inputmethod.InputMethodManager;
import android.widget.EditText; import android.widget.EditText;
import android.widget.TextView; import android.widget.TextView;
import org.fdroid.fdroid.FDroidApp;
import org.fdroid.fdroid.R; import org.fdroid.fdroid.R;
import org.fdroid.fdroid.data.AppProvider; import org.fdroid.fdroid.data.AppProvider;
import org.fdroid.fdroid.data.Schema; import org.fdroid.fdroid.data.Schema;
@ -35,6 +36,7 @@ public class AppListActivity extends AppCompatActivity implements LoaderManager.
@Override @Override
protected void onCreate(@Nullable Bundle savedInstanceState) { protected void onCreate(@Nullable Bundle savedInstanceState) {
((FDroidApp) getApplication()).applyTheme(this);
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_app_list); setContentView(R.layout.activity_app_list);

View File

@ -2,5 +2,5 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"> android:shape="rectangle">
<corners android:radius="3dp" /> <corners android:radius="3dp" />
<solid android:color="@color/details_panel_light" /> <solid android:color="?attr/detailPanel" />
</shape> </shape>

View File

@ -173,7 +173,7 @@
android:paddingBottom="16dp" android:paddingBottom="16dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:layout_marginBottom="16dp" android:layout_marginBottom="16dp"
android:background="@color/details_panel_light" android:background="?attr/detailPanel"
tools:text="NEW IN VERSION 1.0.2233\n\nA lot has happened since the last build:\n\n\t• Improved UI\n\t• Bug fixes" tools:text="NEW IN VERSION 1.0.2233\n\nA lot has happened since the last build:\n\n\t• Improved UI\n\t• Bug fixes"
/> />

View File

@ -29,7 +29,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
tools:text="F-Droid Application manager with a long name that will wrap and then ellipsize" tools:text="F-Droid Application manager with a long name that will wrap and then ellipsize"
android:textSize="18sp" android:textSize="18sp"
android:textColor="#424242" android:textColor="?attr/appListItem"
android:lines="2" android:lines="2"
android:ellipsize="end" android:ellipsize="end"
app:layout_constraintStart_toEndOf="@+id/icon" app:layout_constraintStart_toEndOf="@+id/icon"

View File

@ -8,5 +8,7 @@
<attr name="mainTabSwapSplashTint" format="color" /> <attr name="mainTabSwapSplashTint" format="color" />
<attr name="categoryName" format="color" /> <attr name="categoryName" format="color" />
<attr name="installedApps" format="color" /> <attr name="installedApps" format="color" />
<attr name="detailPanel" format="color" />
<attr name="appListItem" format="color" />
</declare-styleable> </declare-styleable>
</resources> </resources>

View File

@ -14,11 +14,13 @@
<item name="actionBarPopupTheme">@style/AppThemeLight.Toolbar</item> <item name="actionBarPopupTheme">@style/AppThemeLight.Toolbar</item>
<item name="appDetailsBackground">#0c0c0c</item> <item name="appDetailsBackground">#0c0c0c</item>
<item name="appDetailsCardBackground">#000000</item> <item name="appDetailsCardBackground">#000000</item>
<item name="categoryPreviewAppCardBackground">#000000</item> <item name="categoryPreviewAppCardBackground">#212121</item>
<item name="mainTabSwapBackground">#0a0a0a</item> <item name="mainTabSwapBackground">#0a0a0a</item>
<item name="mainTabSwapSplashTint">#050505</item> <item name="mainTabSwapSplashTint">#050505</item>
<item name="categoryName">#ffffff</item> <item name="categoryName">#ffffff</item>
<item name="installedApps">#ffffff</item> <item name="installedApps">#ffffff</item>
<item name="detailPanel">#212121</item>
<item name="appListItem">#ffffff</item>
</style> </style>
<style name="AppBaseThemeLight" parent="Theme.AppCompat.Light.NoActionBar"> <style name="AppBaseThemeLight" parent="Theme.AppCompat.Light.NoActionBar">
@ -39,6 +41,8 @@
<item name="mainTabSwapSplashTint">#f5f5f5</item> <item name="mainTabSwapSplashTint">#f5f5f5</item>
<item name="categoryName">#4a4a4a</item> <item name="categoryName">#4a4a4a</item>
<item name="installedApps">#424242</item> <item name="installedApps">#424242</item>
<item name="detailPanel">#eff4f9</item>
<item name="appListItem">#424242</item>
</style> </style>
<style name="AppThemeDark" parent="AppBaseThemeDark"> <style name="AppThemeDark" parent="AppBaseThemeDark">