mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-27 12:26:48 +01:00
Experiment with styling.
This commit is contained in:
parent
4e7553836b
commit
85ccafc922
@ -13,7 +13,7 @@
|
||||
android:allowBackup="true"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/AppTheme">
|
||||
android:theme="@style/GadgetbridgeTheme">
|
||||
<activity
|
||||
android:name=".SettingsActivity"
|
||||
android:label="@string/app_name" />
|
||||
|
@ -1,5 +1,6 @@
|
||||
package nodomain.freeyourgadget.gadgetbridge;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.NotificationManager;
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
@ -9,13 +10,12 @@ import android.content.SharedPreferences;
|
||||
import android.os.Bundle;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.support.v4.app.NotificationCompat;
|
||||
import android.support.v7.app.ActionBarActivity;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
|
||||
public class ControlCenter extends ActionBarActivity {
|
||||
public class ControlCenter extends Activity {
|
||||
|
||||
public static final String ACTION_QUIT
|
||||
= "nodomain.freeyourgadget.gadgetbride.controlcenter.action.quit";
|
||||
|
@ -1,5 +1,6 @@
|
||||
package nodomain.freeyourgadget.gadgetbridge;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.NotificationManager;
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
@ -7,13 +8,12 @@ import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.NotificationCompat;
|
||||
import android.support.v7.app.ActionBarActivity;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
|
||||
|
||||
public class DebugActivity extends ActionBarActivity {
|
||||
public class DebugActivity extends Activity {
|
||||
Button sendSMSButton;
|
||||
Button sendEmailButton;
|
||||
Button incomingCallButton;
|
||||
|
14
app/src/main/res/values/colors.xml
Normal file
14
app/src/main/res/values/colors.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<color name="primary" type="color">#ffff5000</color>
|
||||
<color name="primarydark" type="color">#f0f03000</color>
|
||||
<color name="accent">#ff0091ea</color>
|
||||
<color name="primarytext" type="color">#de000000</color>
|
||||
<color name="secondarytext" type="color">#8a000000</color>
|
||||
<color name="ondarktext" type="color">#fffafafa</color>
|
||||
<color name="primarybackground" type="color">#fffafafa</color>
|
||||
<color name="secondarybackground" type="color">#ffeeeeee</color>
|
||||
<color name="darkbackground" type="color">#ff323232</color>
|
||||
<color name="divider">#1f000000</color>
|
||||
</resources>
|
@ -1,7 +1,7 @@
|
||||
<resources>
|
||||
|
||||
<!-- Strings related to Settings -->
|
||||
<string name="pref_header_general" >General Settings</string>
|
||||
<string name="pref_header_general">General Settings</string>
|
||||
|
||||
<!-- Strings related to Notifications -->
|
||||
<string name="pref_header_notifications">Notifications</string>
|
||||
|
@ -1,8 +1,22 @@
|
||||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<style name="GadgetbridgeTheme" parent="@android:style/Theme.Holo.Light.DarkActionBar">
|
||||
<item name="android:actionBarStyle">@style/GadgetbridgeActionBar</item>
|
||||
<item name="android:actionBarWidgetTheme">@style/GadgetbridgeActionBarWidget</item>
|
||||
|
||||
</style>
|
||||
|
||||
<style name="GadgetbridgeActionBar" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
|
||||
<item name="android:background">@color/primary</item>
|
||||
<item name="android:backgroundStacked">@color/primarydark</item>
|
||||
<item name="android:displayOptions">showHome|showTitle</item>
|
||||
<item name="android:icon">@android:color/transparent</item>
|
||||
</style>
|
||||
|
||||
<style name="GadgetbridgeActionBarWidget" parent="android:Theme.Holo.Light">
|
||||
<item name="android:popupMenuStyle">@android:style/Widget.Holo.Light.PopupMenu</item>
|
||||
<item name="android:dropDownListViewStyle">@android:style/Widget.Holo.Light.ListView</item>
|
||||
</style>
|
||||
|
||||
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user