-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Library: Clean up themes and attributes
Introduce 'Theme.Neumorph' like 'Theme.AppCompat'.
- Loading branch information
Showing
17 changed files
with
259 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<style name="Theme.Neumorph.DayNight" parent="Theme.Neumorph" /> | ||
|
||
<style name="Theme.Neumorph.DayNight.DarkActionBar" parent="Theme.Neumorph" /> | ||
|
||
<style name="Theme.Neumorph.DayNight.NoActionBar" parent="Theme.Neumorph.NoActionBar" /> | ||
|
||
<style name="Theme.Neumorph.DayNight.DialogWhenLarge" parent="Theme.Neumorph.DialogWhenLarge" /> | ||
|
||
</resources> |
10 changes: 10 additions & 0 deletions
10
neumorphism/src/main/res/values-night/themes_daynight_bridge.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<style name="Theme.Neumorph.DayNight.Bridge" parent="Theme.Neumorph.Bridge" /> | ||
|
||
<style name="Theme.Neumorph.DayNight.DarkActionBar.Bridge" parent="Theme.Neumorph.Bridge" /> | ||
|
||
<style name="Theme.Neumorph.DayNight.NoActionBar.Bridge" parent="Theme.Neumorph.NoActionBar.Bridge" /> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<style name="Theme.Neumorph" parent="Base.Theme.Neumorph" /> | ||
|
||
<style name="Theme.Neumorph.Light" parent="Base.Theme.Neumorph.Light" /> | ||
|
||
<style name="Theme.Neumorph.Light.DarkActionBar" parent="Base.Theme.Neumorph.Light.DarkActionBar" /> | ||
|
||
<style name="Theme.Neumorph.NoActionBar"> | ||
<item name="windowActionBar">false</item> | ||
<item name="windowNoTitle">true</item> | ||
</style> | ||
|
||
<style name="Theme.Neumorph.Light.NoActionBar"> | ||
<item name="windowActionBar">false</item> | ||
<item name="windowNoTitle">true</item> | ||
</style> | ||
|
||
<style name="Theme.Neumorph.DialogWhenLarge" parent="Base.Theme.Neumorph.DialogWhenLarge" /> | ||
|
||
<style name="Theme.Neumorph.Light.DialogWhenLarge" parent="Base.Theme.Neumorph.Light.DialogWhenLarge" /> | ||
|
||
<style name="Theme.Neumorph.CompactMenu" parent="Base.Theme.Neumorph.CompactMenu" /> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<style name="Base.V21.Theme.Neumorph" parent="Base.V21.Theme.Neumorph.Bridge"> | ||
<item name="android:alertDialogTheme">@style/ThemeOverlay.AppCompat.Dialog.Alert</item> | ||
<item name="neumorphButtonStyle">@style/Widget.Neumorph.Button</item> | ||
<item name="neumorphCardViewStyle">@style/Widget.Neumorph.CardView</item> | ||
<item name="neumorphEditTextStyle">@style/Widget.Neumorph.EditText</item> | ||
<item name="neumorphFloatingActionButtonStyle">@style/Widget.Neumorph.FAB</item> | ||
<item name="neumorphImageViewStyle">@style/Widget.Neumorph.ImageView</item> | ||
<item name="neumorphTextViewStyle">@style/Widget.Neumorph.TextView</item> | ||
</style> | ||
|
||
<style name="Base.V21.Theme.Neumorph.Light" parent="Base.V21.Theme.Neumorph.Light.Bridge"> | ||
<item name="android:alertDialogTheme">@style/ThemeOverlay.AppCompat.Dialog.Alert</item> | ||
<item name="neumorphButtonStyle">@style/Widget.Neumorph.Button</item> | ||
<item name="neumorphCardViewStyle">@style/Widget.Neumorph.CardView</item> | ||
<item name="neumorphEditTextStyle">@style/Widget.Neumorph.EditText</item> | ||
<item name="neumorphFloatingActionButtonStyle">@style/Widget.Neumorph.FAB</item> | ||
<item name="neumorphImageViewStyle">@style/Widget.Neumorph.ImageView</item> | ||
<item name="neumorphTextViewStyle">@style/Widget.Neumorph.TextView</item> | ||
</style> | ||
|
||
<style name="Base.Theme.Neumorph" parent="Base.V21.Theme.Neumorph" /> | ||
|
||
<style name="Base.Theme.Neumorph.Light" parent="Base.V21.Theme.Neumorph.Light" /> | ||
|
||
<style name="Base.Theme.Neumorph.Light.DarkActionBar" parent="Base.Theme.Neumorph.Light" /> | ||
|
||
<style name="Base.Theme.Neumorph.CompactMenu" parent="" /> | ||
|
||
<style name="Base.Theme.Neumorph.DialogWhenLarge" parent="Theme.Neumorph" /> | ||
|
||
<style name="Base.Theme.Neumorph.Light.DialogWhenLarge" parent="Theme.Neumorph.Light" /> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<style name="Platform.Neumorph" parent="Theme.AppCompat" /> | ||
|
||
<style name="Platform.Neumorph.Light" parent="Theme.AppCompat.Light" /> | ||
|
||
<style name="Base.V21.Theme.Neumorph.Bridge" parent="Platform.Neumorph"> | ||
<item name="neumorphButtonStyle">@style/Widget.Neumorph.Button</item> | ||
<item name="neumorphCardViewStyle">@style/Widget.Neumorph.CardView</item> | ||
<item name="neumorphEditTextStyle">@style/Widget.Neumorph.EditText</item> | ||
<item name="neumorphFloatingActionButtonStyle">@style/Widget.Neumorph.FAB</item> | ||
<item name="neumorphImageViewStyle">@style/Widget.Neumorph.ImageView</item> | ||
<item name="neumorphTextViewStyle">@style/Widget.Neumorph.TextView</item> | ||
</style> | ||
|
||
<style name="Base.V21.Theme.Neumorph.Light.Bridge" parent="Platform.Neumorph.Light"> | ||
<item name="neumorphButtonStyle">@style/Widget.Neumorph.Button</item> | ||
<item name="neumorphCardViewStyle">@style/Widget.Neumorph.CardView</item> | ||
<item name="neumorphEditTextStyle">@style/Widget.Neumorph.EditText</item> | ||
<item name="neumorphFloatingActionButtonStyle">@style/Widget.Neumorph.FAB</item> | ||
<item name="neumorphImageViewStyle">@style/Widget.Neumorph.ImageView</item> | ||
<item name="neumorphTextViewStyle">@style/Widget.Neumorph.TextView</item> | ||
</style> | ||
|
||
<style name="Base.V21.Theme.Neumorph.Light.DarkActionBar.Bridge" parent="Theme.AppCompat.Light.DarkActionBar"> | ||
<item name="neumorphButtonStyle">@style/Widget.Neumorph.Button</item> | ||
<item name="neumorphCardViewStyle">@style/Widget.Neumorph.CardView</item> | ||
<item name="neumorphEditTextStyle">@style/Widget.Neumorph.EditText</item> | ||
<item name="neumorphFloatingActionButtonStyle">@style/Widget.Neumorph.FAB</item> | ||
<item name="neumorphImageViewStyle">@style/Widget.Neumorph.ImageView</item> | ||
<item name="neumorphTextViewStyle">@style/Widget.Neumorph.TextView</item> | ||
</style> | ||
|
||
<style name="Base.Theme.Neumorph.Bridge" parent="Base.V21.Theme.Neumorph.Bridge" /> | ||
|
||
<style name="Base.Theme.Neumorph.Light.Bridge" parent="Base.V21.Theme.Neumorph.Light.Bridge" /> | ||
|
||
<style name="Base.Theme.Neumorph.Light.DarkActionBar.Bridge" parent="Base.V21.Theme.Neumorph.Light.DarkActionBar.Bridge" /> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<style name="Theme.Neumorph.Bridge" parent="Base.Theme.Neumorph.Bridge" /> | ||
|
||
<style name="Theme.Neumorph.Light.Bridge" parent="Base.Theme.Neumorph.Light.Bridge" /> | ||
|
||
<style name="Theme.Neumorph.NoActionBar.Bridge" parent="Theme.Neumorph.Bridge"> | ||
<item name="windowActionBar">false</item> | ||
<item name="windowNoTitle">true</item> | ||
</style> | ||
|
||
<style name="Theme.Neumorph.Light.NoActionBar.Bridge" parent="Theme.Neumorph.Light.Bridge"> | ||
<item name="windowActionBar">false</item> | ||
<item name="windowNoTitle">true</item> | ||
</style> | ||
|
||
<style name="Theme.Neumorph.Light.DarkActionBar.Bridge" parent="Base.Theme.Neumorph.Light.DarkActionBar.Bridge" /> | ||
|
||
</resources> |
Oops, something went wrong.