mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 06:21:31 +01:00
Start building the theme fragment
This commit is contained in:
parent
16c180a725
commit
664e0a037e
4 changed files with 57 additions and 14 deletions
|
@ -11,7 +11,7 @@
|
|||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/finnmglasTheme">
|
||||
android:theme="@style/darkTheme">
|
||||
|
||||
<activity android:name=".MainActivity"
|
||||
android:screenOrientation="portrait"
|
||||
|
|
|
@ -19,4 +19,43 @@
|
|||
android:textAllCaps="false" /-->
|
||||
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10sp"
|
||||
android:theme="@style/finnmglasTheme">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorAccent">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Activate"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10sp"
|
||||
android:theme="@style/darkTheme">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorAccent">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Activate"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
|
@ -1,6 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#2d2d2d</color>
|
||||
<color name="colorPrimaryDark">#252827</color>
|
||||
<color name="colorAccent">#5555ff</color>
|
||||
<color name="finnmglasTheme_background_color">#252827</color>
|
||||
<color name="finnmglasTheme_accent_color">#5555ff</color>
|
||||
<color name="finnmglasTheme_text_color">#fff</color>
|
||||
|
||||
<color name="darkTheme_background_color">#000</color>
|
||||
<color name="darkTheme_accent_color">#444</color>
|
||||
<color name="darkTheme_text_color">#fff</color>
|
||||
</resources>
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
<!-- Personal Theme of Finn M Glas -->
|
||||
<style name="finnmglasTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<item name="colorPrimary">#252827</item>
|
||||
<item name="colorPrimaryDark">#252827</item>
|
||||
<item name="android:colorBackground">#252827</item>
|
||||
<item name="colorPrimary">@color/finnmglasTheme_background_color</item>
|
||||
<item name="colorPrimaryDark">@color/finnmglasTheme_background_color</item>
|
||||
<item name="android:colorBackground">@color/finnmglasTheme_background_color</item>
|
||||
|
||||
<item name="colorAccent">#5555ff</item>
|
||||
<item name="colorAccent">@color/finnmglasTheme_accent_color</item>
|
||||
|
||||
<item name="android:textColor">#ffffff</item>
|
||||
<item name="android:textColor">@color/finnmglasTheme_text_color</item>
|
||||
<item name="android:buttonStyle">@style/Widget.AppCompat.Button.Colored</item>
|
||||
|
||||
<item name="android:windowDisablePreview">true</item>
|
||||
|
@ -16,13 +16,13 @@
|
|||
|
||||
<!-- A dark efficiency theme -->
|
||||
<style name="darkTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<item name="colorPrimary">#000</item>
|
||||
<item name="colorPrimaryDark">#000</item>
|
||||
<item name="android:colorBackground">#000</item>
|
||||
<item name="colorPrimary">@color/darkTheme_background_color</item>
|
||||
<item name="colorPrimaryDark">@color/darkTheme_background_color</item>
|
||||
<item name="android:colorBackground">@color/darkTheme_background_color</item>
|
||||
|
||||
<item name="colorAccent">#333</item>
|
||||
<item name="colorAccent">@color/darkTheme_accent_color</item>
|
||||
|
||||
<item name="android:textColor">#ccc</item>
|
||||
<item name="android:textColor">@color/darkTheme_text_color</item>
|
||||
<item name="android:buttonStyle">@style/Widget.AppCompat.Button.Colored</item>
|
||||
|
||||
<item name="android:windowDisablePreview">true</item>
|
||||
|
|
Loading…
Add table
Reference in a new issue