Blue Done icon for light wizard
This commit is contained in:
parent
038b08fe3d
commit
2e1c3d9ee9
@ -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 {
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
BIN
android-app/src/main/res/drawable-hdpi/ic_action_done_blue.png
Normal file
BIN
android-app/src/main/res/drawable-hdpi/ic_action_done_blue.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
BIN
android-app/src/main/res/drawable-mdpi/ic_action_done_blue.png
Normal file
BIN
android-app/src/main/res/drawable-mdpi/ic_action_done_blue.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
android-app/src/main/res/drawable-xhdpi/ic_action_done_blue.png
Normal file
BIN
android-app/src/main/res/drawable-xhdpi/ic_action_done_blue.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
BIN
android-app/src/main/res/drawable-xxhdpi/ic_action_done_blue.png
Normal file
BIN
android-app/src/main/res/drawable-xxhdpi/ic_action_done_blue.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.1 KiB |
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user