mirror of
https://github.com/TrianguloY/LightningLauncher.git
synced 2024-12-26 09:58:20 +01:00
Cleanup Styles
- Removed obsolete styles resources - Dimens extracted into separate file
This commit is contained in:
parent
8794ee86da
commit
cd00dd4519
12 changed files with 76 additions and 133 deletions
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="AppDialog" parent="android:Theme.Holo.Light.Dialog.NoActionBar" />
|
||||
</resources>
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="AppDialog" parent="android:Theme.Dialog" />
|
||||
</resources>
|
|
@ -1,29 +0,0 @@
|
|||
<resources>
|
||||
<style name="bubble_bg">
|
||||
<item name="android:background">@drawable/bubble_v13</item>
|
||||
</style>
|
||||
<style name="bubble_arrow_up_bg">
|
||||
<item name="android:src">@drawable/arrow_up_v13</item>
|
||||
</style>
|
||||
<style name="bubble_arrow_down_bg">
|
||||
<item name="android:src">@drawable/arrow_down_v13</item>
|
||||
</style>
|
||||
<style name="bubble_item" parent="bubble_item_base">
|
||||
<item name="android:background">@drawable/bubble_item_bg</item>
|
||||
</style>
|
||||
<style name="bbl_ttl" parent="bbl_ttl_base">
|
||||
<item name="android:background">@drawable/bubble_item_bg</item>
|
||||
</style>
|
||||
|
||||
<style name="ab_bg">
|
||||
<item name="android:background">@drawable/ab_bg_v13</item>
|
||||
</style>
|
||||
<style name="ab_text" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title"/>
|
||||
|
||||
<style name="sc_text" parent="sc_text_base">
|
||||
<item name="android:background">@null</item>
|
||||
</style>
|
||||
|
||||
<dimen name="pref_padding">0dp</dimen>
|
||||
<dimen name="bubble_arrow_shift">10px</dimen>
|
||||
</resources>
|
|
@ -1,6 +0,0 @@
|
|||
<resources>
|
||||
<style name="list_item">
|
||||
<item name="android:paddingLeft">?android:attr/listPreferredItemPaddingLeft</item>
|
||||
<item name="android:paddingRight">?android:attr/listPreferredItemPaddingRight</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -1,23 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="bubble_item" parent="bubble_item_base">
|
||||
<item name="android:textSize">16dp</item>
|
||||
<item name="android:background">@drawable/bubble_item_bg</item>
|
||||
<item name="android:textAllCaps">false</item>
|
||||
<item name="android:fontFamily">sans-serif-light</item>
|
||||
</style>
|
||||
|
||||
<style name="bbl_ttl" parent="bbl_ttl_base">
|
||||
<item name="android:fontFamily">sans-serif-light</item>
|
||||
<item name="android:background">@drawable/bubble_item_bg</item>
|
||||
</style>
|
||||
|
||||
<style name="ab_bg">
|
||||
<item name="android:elevation">8dp</item>
|
||||
<item name="android:background">@color/color_primary</item>
|
||||
</style>
|
||||
|
||||
<style name="ab_text" parent="@android:style/TextAppearance.Material.Widget.ActionBar.Title.Inverse" />
|
||||
|
||||
<dimen name="pref_padding">0dp</dimen>
|
||||
</resources>
|
11
app/llx/app/src/main/res/values/colors.xml
Normal file
11
app/llx/app/src/main/res/values/colors.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="bubble_item_bg_normal">#ffe6e6e6</color>
|
||||
<color name="bubble_item_bg_pressed">#ffc0c0c0</color>
|
||||
<color name="color_text">?android:attr/colorForeground</color>
|
||||
<color name="color_text_pressed">?android:attr/colorPressedHighlight</color>
|
||||
<color name="color_text_disabled">?android:attr/textColorPrimary</color>
|
||||
<color name="eb_btn_pressed">#fff</color>
|
||||
<color name="eb_btn_activated">#dfff</color>
|
||||
<color name="eb_bar_bg">#8fff</color>
|
||||
</resources>
|
20
app/llx/app/src/main/res/values/dimens.xml
Normal file
20
app/llx/app/src/main/res/values/dimens.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="eb_bar_size">38dp</dimen>
|
||||
<dimen name="eb_text_size">20dp</dimen>
|
||||
<dimen name="icon_text_size">24dp</dimen>
|
||||
<dimen name="large_icon_text_size">24dp</dimen>
|
||||
<dimen name="max_box_editor_width">400dp</dimen>
|
||||
<dimen name="ab_height">48dp</dimen>
|
||||
<dimen name="pref_height">40dp</dimen>
|
||||
<dimen name="pref_size_category">12dp</dimen>
|
||||
<dimen name="pref_size_title">15dp</dimen>
|
||||
<dimen name="pref_size_summary">11dp</dimen>
|
||||
<dimen name="hierarchy_indent">20dp</dimen>
|
||||
|
||||
<dimen name="add_item_margin">4dp</dimen>
|
||||
<dimen name="list_item_icon_size">48dp</dimen>
|
||||
|
||||
<dimen name="pref_padding">0dp</dimen>
|
||||
<dimen name="bubble_arrow_shift">10px</dimen>
|
||||
</resources>
|
|
@ -1,15 +1,5 @@
|
|||
<resources>
|
||||
|
||||
|
||||
<style name="bubble_bg">
|
||||
<item name="android:background">@drawable/bubble_v9</item>
|
||||
</style>
|
||||
<style name="bubble_arrow_up_bg">
|
||||
<item name="android:src">@drawable/arrow_up_v9</item>
|
||||
</style>
|
||||
<style name="bubble_arrow_down_bg">
|
||||
<item name="android:src">@drawable/arrow_down_v9</item>
|
||||
</style>
|
||||
<style name="bubble_item_base">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
|
@ -21,10 +11,7 @@
|
|||
<item name="android:gravity">left|center_vertical</item>
|
||||
<item name="android:textColor">#262626</item>
|
||||
</style>
|
||||
<style name="bubble_item" parent="bubble_item_base">
|
||||
<item name="android:textColor">#fff</item>
|
||||
<item name="android:background">@android:drawable/list_selector_background</item>
|
||||
</style>
|
||||
|
||||
<style name="bubble_item_icon" parent="bubble_item">
|
||||
<item name="android:layout_width">48dp</item>
|
||||
<item name="android:layout_height">38dp</item>
|
||||
|
@ -40,9 +27,6 @@
|
|||
<item name="android:textSize">11dp</item>
|
||||
<item name="android:padding">3dp</item>
|
||||
</style>
|
||||
<style name="bbl_ttl" parent="bbl_ttl_base">
|
||||
<item name="android:textColor">#fff</item>
|
||||
</style>
|
||||
|
||||
<style name="sm_button" parent="ab_text">
|
||||
<item name="android:layout_width">0dp</item>
|
||||
|
@ -59,11 +43,6 @@
|
|||
<item name="android:textSize">@dimen/icon_text_size</item>
|
||||
</style>
|
||||
|
||||
<style name="ab_bg">
|
||||
<item name="android:background">@drawable/ab_bg_v9</item>
|
||||
</style>
|
||||
<style name="ab_text" parent="android:TextAppearance.Medium"/>
|
||||
|
||||
<style name="sc_text_base">
|
||||
<item name="android:inputType">textMultiLine|textNoSuggestions</item>
|
||||
<item name="android:typeface">monospace</item>
|
||||
|
@ -71,8 +50,6 @@
|
|||
<item name="android:gravity">top</item>
|
||||
</style>
|
||||
|
||||
<style name="sc_text" parent="sc_text_base"/>
|
||||
|
||||
<style name="ab_btn_icon" parent="ab_text">
|
||||
<item name="android:layout_width">48dp</item>
|
||||
<item name="android:layout_height">match_parent</item>
|
||||
|
@ -81,8 +58,6 @@
|
|||
<item name="android:textSize">26dp</item>
|
||||
</style>
|
||||
|
||||
<dimen name="eb_bar_size">38dp</dimen>
|
||||
<dimen name="eb_text_size">20dp</dimen>
|
||||
<style name="eb_bar">
|
||||
<item name="android:visibility">gone</item>
|
||||
<item name="android:background">@color/eb_bar_bg</item>
|
||||
|
@ -121,31 +96,9 @@
|
|||
<item name="android:clickable">true</item>
|
||||
</style>
|
||||
|
||||
<color name="bubble_item_bg_normal">#ffe6e6e6</color>
|
||||
<color name="bubble_item_bg_pressed">#ffc0c0c0</color>
|
||||
<color name="color_text">?android:attr/colorForeground</color>
|
||||
<color name="color_text_pressed">?android:attr/colorPressedHighlight</color>
|
||||
<color name="color_text_disabled">?android:attr/textColorPrimary</color>
|
||||
<color name="eb_btn_pressed">#fff</color>
|
||||
<color name="eb_btn_activated">#dfff</color>
|
||||
<color name="eb_bar_bg">#8fff</color>
|
||||
|
||||
<dimen name="pref_padding">0dp</dimen>
|
||||
<dimen name="bubble_arrow_shift">5px</dimen>
|
||||
<dimen name="icon_text_size">24dp</dimen>
|
||||
<dimen name="large_icon_text_size">24dp</dimen>
|
||||
<dimen name="max_box_editor_width">400dp</dimen>
|
||||
<dimen name="ab_height">48dp</dimen>
|
||||
<dimen name="pref_height">40dp</dimen>
|
||||
<dimen name="pref_size_category">12dp</dimen>
|
||||
<dimen name="pref_size_title">15dp</dimen>
|
||||
<dimen name="pref_size_summary">11dp</dimen>
|
||||
<dimen name="hierarchy_indent">20dp</dimen>
|
||||
|
||||
<dimen name="add_item_margin">4dp</dimen>
|
||||
<style name="list_item">
|
||||
<item name="android:paddingLeft">7dp</item>
|
||||
<item name="android:paddingRight">7dp</item>
|
||||
<item name="android:paddingLeft">?android:attr/listPreferredItemPaddingLeft</item>
|
||||
<item name="android:paddingRight">?android:attr/listPreferredItemPaddingRight</item>
|
||||
</style>
|
||||
|
||||
<style name="zorder_btn">
|
||||
|
@ -155,5 +108,46 @@
|
|||
<item name="android:scaleType">fitCenter</item>
|
||||
<item name="android:padding">6dp</item>
|
||||
</style>
|
||||
<dimen name="list_item_icon_size">48dp</dimen>
|
||||
|
||||
<style name="bubble_item" parent="bubble_item_base">
|
||||
<item name="android:textSize">16dp</item>
|
||||
<item name="android:background">@drawable/bubble_item_bg</item>
|
||||
<item name="android:textAllCaps">false</item>
|
||||
<item name="android:fontFamily">sans-serif-light</item>
|
||||
</style>
|
||||
|
||||
<style name="bbl_ttl" parent="bbl_ttl_base">
|
||||
<item name="android:fontFamily">sans-serif-light</item>
|
||||
<item name="android:background">@drawable/bubble_item_bg</item>
|
||||
</style>
|
||||
|
||||
<style name="ab_bg">
|
||||
<item name="android:elevation">8dp</item>
|
||||
<item name="android:background">@color/color_primary</item>
|
||||
</style>
|
||||
|
||||
<style name="ab_text" parent="@android:style/TextAppearance.Material.Widget.ActionBar.Title.Inverse" />
|
||||
|
||||
<style name="bubble_bg">
|
||||
<item name="android:background">@drawable/bubble_v13</item>
|
||||
</style>
|
||||
|
||||
<style name="bubble_arrow_up_bg">
|
||||
<item name="android:src">@drawable/arrow_up_v13</item>
|
||||
</style>
|
||||
|
||||
<style name="bubble_arrow_down_bg">
|
||||
<item name="android:src">@drawable/arrow_down_v13</item>
|
||||
</style>
|
||||
|
||||
<style name="sc_text" parent="sc_text_base">
|
||||
<item name="android:background">@null</item>
|
||||
</style>
|
||||
|
||||
<style name="AppDialog" parent="android:Theme.Material.Light.Dialog.NoActionBar">
|
||||
<item name="android:colorPrimary">@color/color_primary</item>
|
||||
<item name="android:colorPrimaryDark">@color/color_primary_dark</item>
|
||||
<item name="android:colorAccent">@color/color_accent</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="AppDialog" parent="android:Theme.Holo.Light.Dialog.NoActionBar" />
|
||||
</resources>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="AppDialog" parent="android:Theme.Material.Light.Dialog.NoActionBar">
|
||||
<item name="android:colorPrimary">@color/color_primary</item>
|
||||
<item name="android:colorPrimaryDark">@color/color_primary_dark</item>
|
||||
<item name="android:colorAccent">@color/color_accent</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="AppDialog" parent="android:Theme.Dialog" />
|
||||
</resources>
|
Loading…
Reference in a new issue