mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add theme dependencies
This commit is contained in:
parent
a4555af5f2
commit
5e3a1fe051
10 changed files with 39 additions and 13 deletions
|
|
@ -372,7 +372,6 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment {
|
|||
fabCommons.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Log.d("deneme","deneme");
|
||||
openWebView(place.siteLinks.getCommonsLink()); }
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:state_enabled="false"
|
||||
android:color="@color/disabled_button_text_color_light" />
|
||||
android:color="@color/opak_middle_grey" />
|
||||
<item
|
||||
android:color="@color/status_bar_blue" />
|
||||
</selector>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:state_enabled="false"
|
||||
android:color="@color/disabled_button_text_color_light" />
|
||||
android:color="?attr/textDisabled" />
|
||||
<item
|
||||
android:color="@color/enabled_button_text_color_light" />
|
||||
android:color="?attr/textEnabled" />
|
||||
</selector>
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:state_pressed="true"
|
||||
android:drawable="@color/pressed_button_background_light" />
|
||||
android:drawable="@color/pressed_button_light" />
|
||||
<item
|
||||
android:state_focused="true"
|
||||
android:drawable="@color/focused_button_background_light" />
|
||||
<item
|
||||
android:drawable="@android:color/transparent" />
|
||||
android:drawable="@color/focused_button_light"
|
||||
/>
|
||||
<item android:drawable="@android:color/transparent" />
|
||||
</selector>
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
android:id="@+id/more_info_button"
|
||||
android:visibility="gone"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="@color/default_circle_indicator_stroke_color"
|
||||
android:background="?attr/bottomBar"
|
||||
>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/cardview_light_background"
|
||||
android:background="?attr/mainBackground"
|
||||
app:layout_behavior="@string/bottom_sheet_behavior"
|
||||
app:behavior_peekHeight="128dp"
|
||||
app:behavior_hideable="true"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
android:id="@+id/bottom_sheet"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/cardview_light_background"
|
||||
android:background="?attr/mainBackground"
|
||||
app:layout_behavior="@string/bottom_sheet_behavior"
|
||||
app:behavior_peekHeight="0dp"
|
||||
app:behavior_hideable="true"
|
||||
|
|
|
|||
|
|
@ -7,6 +7,13 @@
|
|||
<attr name="buttonBackground" format="reference"/>
|
||||
<attr name="uploadOverlayBackground" format="reference"/>
|
||||
<attr name="spinnerTheme" format="reference"/>
|
||||
<attr name="bottomBar" format="reference"/>
|
||||
<attr name="buttonBackgroundFocused" format="reference"/>
|
||||
<attr name="buttonBackgroundPressed" format="reference"/>
|
||||
<attr name="buttonFocused" format="reference"/>
|
||||
<attr name="buttonPressed" format="reference"/>
|
||||
<attr name="textDisabled" format="reference"/>
|
||||
<attr name="textEnabled" format="reference"/>
|
||||
|
||||
<declare-styleable name="CompatTextView">
|
||||
<attr name="drawablePadding" format="dimension"/>
|
||||
|
|
|
|||
|
|
@ -31,10 +31,20 @@
|
|||
<color name="upload_overlay_background_dark">#77000000</color>
|
||||
<color name="upload_overlay_background_light">#44000000</color>
|
||||
|
||||
<color name="pressed_button_background_light">#64999999</color>
|
||||
<color name="focused_button_background_light">#32999999</color>
|
||||
<color name="pressed_button_light">#64999999</color>
|
||||
<color name="focused_button_light">#32999999</color>
|
||||
<color name="disabled_button_text_color_light">#48000000</color>
|
||||
<color name="enabled_button_text_color_light">#B0000000</color>
|
||||
|
||||
<color name="pressed_button_dark">#40CCCCCC</color>
|
||||
<color name="focused_button_dark">#26CCCCCC</color>
|
||||
<color name="disabled_button_text_color_dark">#717171</color>
|
||||
<color name="enabled_button_text_color_dark">#FFFFFF</color>
|
||||
|
||||
<color name="button_blue">#0c609c</color>
|
||||
|
||||
<color name="bottom_bar_light">#E0E0E0</color>
|
||||
<color name="bottom_bar_dark">#424242</color>
|
||||
|
||||
<color name="opak_middle_grey">#757575</color>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,11 @@
|
|||
<item name="buttonBackground">@color/button_background_dark</item>
|
||||
<item name="uploadOverlayBackground">@color/upload_overlay_background_dark</item>
|
||||
<item name="spinnerTheme">@style/DarkSpinnerTheme</item>
|
||||
<item name="bottomBar">@color/bottom_bar_dark</item>
|
||||
<item name="buttonBackgroundFocused">@color/focused_button_dark</item>
|
||||
<item name="buttonBackgroundPressed">@color/pressed_button_dark</item>
|
||||
<item name="textDisabled">@color/disabled_button_text_color_dark</item>
|
||||
<item name="textEnabled">@color/enabled_button_text_color_dark</item>
|
||||
</style>
|
||||
|
||||
<style name="LightAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
|
|
@ -27,6 +32,11 @@
|
|||
<item name="buttonBackground">@color/button_background_light</item>
|
||||
<item name="uploadOverlayBackground">@color/upload_overlay_background_light</item>
|
||||
<item name="spinnerTheme">@style/LightSpinnerTheme</item>
|
||||
<item name="bottomBar">@color/bottom_bar_light</item>
|
||||
<item name="buttonBackgroundFocused">@color/focused_button_light</item>
|
||||
<item name="buttonBackgroundPressed">@color/pressed_button_light</item>
|
||||
<item name="textDisabled">@color/disabled_button_text_color_light</item>
|
||||
<item name="textEnabled">@color/enabled_button_text_color_light</item>
|
||||
</style>
|
||||
|
||||
<style name="DarkSpinnerTheme" parent="DarkAppTheme">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue