Browse Source

Changing style of actionbar in settings

Necessary change in order to use actionbar overlay for full screen
master
Anthony Restaino 10 years ago
parent
commit
a4d12ab2d3
  1. 6
      AndroidManifest.xml
  2. 19
      res/values/styles.xml

6
AndroidManifest.xml

@ -107,7 +107,7 @@
android:name="acr.browser.lightning.SettingsActivity" android:name="acr.browser.lightning.SettingsActivity"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
android:label="@string/settings" android:label="@string/settings"
android:theme="@style/LightTheme" > android:theme="@style/DefaultTheme" >
<intent-filter> <intent-filter>
<action android:name="android.intent.action.SETTINGS" /> <action android:name="android.intent.action.SETTINGS" />
@ -118,7 +118,7 @@
android:name="acr.browser.lightning.AdvancedSettingsActivity" android:name="acr.browser.lightning.AdvancedSettingsActivity"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
android:label="@string/advanced" android:label="@string/advanced"
android:theme="@style/LightTheme" > android:theme="@style/DefaultTheme" >
<intent-filter> <intent-filter>
<action android:name="android.intent.action.ADVANCED_SETTINGS" /> <action android:name="android.intent.action.ADVANCED_SETTINGS" />
@ -143,7 +143,7 @@
android:name="acr.browser.lightning.LicenseActivity" android:name="acr.browser.lightning.LicenseActivity"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
android:label="@string/licenses" android:label="@string/licenses"
android:theme="@style/LightTheme" > android:theme="@style/DefaultTheme" >
<intent-filter> <intent-filter>
<action android:name="android.intent.action.LICENSE" /> <action android:name="android.intent.action.LICENSE" />

19
res/values/styles.xml

@ -1,6 +1,21 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android"> <resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="DefaultTheme" parent="android:Theme.Holo.Light">
<item name="progressColor">@color/gray_medium</item>
<item name="arrowBackDrawable">@drawable/ic_action_back</item>
<item name="numberColor">@color/gray_dark</item>
<item name="autoCompleteTitleColor">@color/black</item>
<item name="autoCompleteUrlColor">@color/gray_medium</item>
<item name="arrowForwardDrawable">@drawable/ic_action_forward</item>
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. --> <!-- Application theme. -->
<style name="LightTheme" parent="android:Theme.Holo.Light"> <style name="LightTheme" parent="android:Theme.Holo.Light">
<item name="android:windowContentOverlay">@null</item> <item name="android:windowContentOverlay">@null</item>
@ -37,11 +52,11 @@
<item name="android:background">@color/gray_light</item> <item name="android:background">@color/gray_light</item>
</style> </style>
<style name="boldText" > <style name="boldText">
<item name="android:textStyle">bold</item> <item name="android:textStyle">bold</item>
</style> </style>
<style name="normalText" > <style name="normalText">
<item name="android:textStyle">normal</item> <item name="android:textStyle">normal</item>
<item name="android:fontFamily">sans-serif-light</item> <item name="android:fontFamily">sans-serif-light</item>
</style> </style>

Loading…
Cancel
Save