From e119dbbc93e49d7aa8924cadfa528096106e5ddc Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Tue, 20 Mar 2012 11:38:55 -0700 Subject: [PATCH] Make the locale edit alerts screen always dark themed: --- .../astrid/locale/LocaleEditAlerts.java | 10 ++++------ astrid/res/drawable/locale_border.9.png | Bin 1197 -> 1399 bytes astrid/res/layout/locale_edit_alerts.xml | 11 ++++++----- astrid/res/values/styles-locale.xml | 2 +- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/locale/LocaleEditAlerts.java b/astrid/plugin-src/com/todoroo/astrid/locale/LocaleEditAlerts.java index 719ca7840..ee38c277e 100644 --- a/astrid/plugin-src/com/todoroo/astrid/locale/LocaleEditAlerts.java +++ b/astrid/plugin-src/com/todoroo/astrid/locale/LocaleEditAlerts.java @@ -10,7 +10,6 @@ import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; -import android.widget.LinearLayout; import android.widget.ListView; import android.widget.Spinner; @@ -25,7 +24,6 @@ import com.todoroo.astrid.api.FilterListItem; import com.todoroo.astrid.core.PluginServices; import com.todoroo.astrid.service.StatisticsConstants; import com.todoroo.astrid.service.StatisticsService; -import com.todoroo.astrid.service.ThemeService; import com.twofortyfouram.SharedResources; /** @@ -100,7 +98,7 @@ public final class LocaleEditAlerts extends ListActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { - ThemeService.forceTheme(R.style.Theme_White); + setTheme(R.style.Theme); super.onCreate(savedInstanceState); setContentView(R.layout.locale_edit_alerts); @@ -118,9 +116,9 @@ public final class LocaleEditAlerts extends ListActivity { /* * Load the Locale background frame from Locale */ - ((LinearLayout) findViewById(R.id.frame)).setBackgroundDrawable( - SharedResources.getDrawableResource(getPackageManager(), - SharedResources.DRAWABLE_LOCALE_BORDER)); +// ((LinearLayout) findViewById(R.id.frame)).setBackgroundDrawable( +// SharedResources.getDrawableResource(getPackageManager(), +// SharedResources.DRAWABLE_LOCALE_BORDER)); // set up UI components interval = (Spinner) findViewById(R.id.intervalSpinner); diff --git a/astrid/res/drawable/locale_border.9.png b/astrid/res/drawable/locale_border.9.png index e1dd0cec7dc83d5bca581fa4626289707b413b42..0024c8fbbb6d8cf91923f797504687a7b57fcf90 100644 GIT binary patch delta 1381 zcmV-r1)BP;3HJ(+BYyx1a7bBm000XU000XU0RWnu7ytkTDM>^@RA_}CW6|xYCAP8D;VW4)Sw1Sl`N>R{C?V?e- z8EZkojSE+bSTG?e8JvmJbduOQV=9w*_uXF?%^O%(rVBo>VCqfr0WfW?wZ<4mMn*Vy?i^iR zT{JW_AgQd;(0|ZCXJ;qp&z~nAkK?*73;G4vU&v=Mi1&aTKr)$RU|@jy`g$Uf2+?Si zR4PR-m&0}4C5JJFY&Og6>?}8L-sHf614!cJ$&<{@&0(#zz|TNru^?N4pRBcZWMqUu zAV5b)2Y2t@Wqy7hV+_WavOv5J1YnHe&Ye4K*|LRDD1XGGN00cEg%?26VnBWXY&;&P zt*wpj?rsu^L>}Pb!-pI@c8txNH&b0*z2uZyyLK%tEiIflae~p&QC!!>TFb=51d&LD zU@%B7mjkfCH$Y7(AZ>tgU6&(Ajt~lkNT<^PJbn6<-rinnYirA1A70ed)Nts~A*QCL zFvc)8Hh;#34I3C79Q0PqS;&~8AYTJEkx1b8`-w)QSZm2-GPJd|EgQh=(b3Vt?CdPo zT5jLIO?7oO@p#;;mrqLpNm^?;d-g1Q_wL1U9J1Lg`}gmEYY<)>K72S|JK=DcOP4O; zx~>I&ECs|^YYBxyM59rRF+6zi;H^V=X*NDSj(@e5>({TdZ{I#Iy?!eN#9C{SL^7Gg zaU6~wJ-Q+wk{B8q!WhG|XU|x_e*ItTq$mgglJc+EO`A5Y7|8bR+cC!Q>eZ{fC&2s- zL=yj$TE-X_?&YCYD%P!Am#>pTAT=r?k9H;X^5siOlFwIod-tCJDMkO=|05NvRgg;4 zDt}0&X%(c>vzt%6jVswlCCTT@eX$G>cqkpNE zmKI6U{QP`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/> + android:background="@android:color/black" + android:cacheColorHint="@android:color/black"/> @@ -42,14 +44,13 @@ android:layout_weight="1" android:gravity="center" android:text="@string/locale_interval_label" - style="@style/TextAppearance.Locale_Label" /> + style="@style/TextAppearance" /> diff --git a/astrid/res/values/styles-locale.xml b/astrid/res/values/styles-locale.xml index a7b890768..57ed90a13 100644 --- a/astrid/res/values/styles-locale.xml +++ b/astrid/res/values/styles-locale.xml @@ -12,7 +12,7 @@