Blue Done icon for light wizard

This commit is contained in:
serso 2015-02-09 23:26:59 +01:00
parent 038b08fe3d
commit 2e1c3d9ee9
7 changed files with 18 additions and 0 deletions

View File

@ -168,6 +168,10 @@ public final class Preferences {
} }
return textColor; return textColor;
} }
public boolean isLight() {
return themeId == R.style.Cpp_Theme_Material_Light;
}
} }
public static final class TextColor { public static final class TextColor {

View File

@ -1,5 +1,9 @@
package org.solovyev.android.calculator.wizard; package org.solovyev.android.calculator.wizard;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import org.solovyev.android.calculator.App;
import org.solovyev.android.calculator.R; import org.solovyev.android.calculator.R;
public class FinalWizardStep extends WizardFragment { public class FinalWizardStep extends WizardFragment {
@ -8,4 +12,13 @@ public class FinalWizardStep extends WizardFragment {
protected int getViewResId() { protected int getViewResId() {
return R.layout.cpp_wizard_step_final; return R.layout.cpp_wizard_step_final;
} }
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
if (App.getTheme().isLight()) {
final TextView message = (TextView) view.findViewById(R.id.wizard_final_message);
message.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.ic_action_done_blue, 0, 0);
}
}
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -30,6 +30,7 @@
<TextView <TextView
style="@style/WizardLabel.Last" style="@style/WizardLabel.Last"
a:id="@+id/wizard_final_message"
a:layout_width="match_parent" a:layout_width="match_parent"
a:layout_height="wrap_content" a:layout_height="wrap_content"
a:drawableTop="@drawable/ic_action_done" a:drawableTop="@drawable/ic_action_done"