Skip to content
This repository was archived by the owner on Jan 13, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions LegacyBar.Library/Bar/LegacyBarUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ public static void SetLegacyBarTheme(LegacyBar legacyBar, LegacyBarTheme theme)
legacyBar.BackgroundDrawableRaw = Resource.Drawable.actionbar_background_black;
legacyBar.DropdownDrawableRaw = Resource.Drawable.dropdown_btn_holo_dark;
break;
case LegacyBarTheme.HoloDarkBlue: //dark blue
legacyBar.SeparatorColorRaw = Resource.Color.actionbar_separator_darkblue;
legacyBar.TitleColorRaw = Resource.Color.actionbar_title_darkblue;
legacyBar.ItemBackgroundDrawableRaw = Resource.Drawable.actionbar_btn_darkblue;
legacyBar.BackgroundDrawableRaw = Resource.Drawable.actionbar_background_darkblue;
legacyBar.DropdownDrawableRaw = Resource.Drawable.dropdown_btn_holo_dark;
break;
default:

legacyBar.DropdownDrawableRaw = legacyBar.LightIcons ? Resource.Drawable.dropdown_btn_holo_light : Resource.Drawable.dropdown_btn_holo_dark;
Expand Down Expand Up @@ -139,6 +146,13 @@ public static void SetBottomLegacyBarTheme(LegacyBar legacyBar, LegacyBarTheme t
legacyBar.BackgroundDrawableRaw = Resource.Drawable.bottomactionbar_background_black;
legacyBar.DropdownDrawableRaw = Resource.Drawable.dropdown_btn_holo_dark;
break;
case LegacyBarTheme.HoloDarkBlue://dark blue
legacyBar.SeparatorColorRaw = Resource.Color.bottomactionbar_separator;
legacyBar.TitleColorRaw = Resource.Color.actionbar_title_blue;
legacyBar.ItemBackgroundDrawableRaw = Resource.Drawable.bottomactionbar_btn_darkblue;
legacyBar.BackgroundDrawableRaw = Resource.Drawable.bottomactionbar_background_darkblue;
legacyBar.DropdownDrawableRaw = Resource.Drawable.dropdown_btn_holo_dark;
break;
default:
legacyBar.DropdownDrawableRaw = legacyBar.LightIcons ? Resource.Drawable.dropdown_btn_holo_light : Resource.Drawable.dropdown_btn_holo_dark;
break;
Expand Down
3 changes: 2 additions & 1 deletion LegacyBar.Library/BarActions/ILegacyBarAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public enum LegacyBarTheme
HoloLight,
HoloGray,
HoloBlack,
HoloBlue
HoloBlue,
HoloDarkBlue
}

public enum ActionType
Expand Down
7 changes: 5 additions & 2 deletions LegacyBar.Library/LegacyBar.Library.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AndroidResgenClass>Resource</AndroidResgenClass>
<AssemblyName>LegacyBar.Library</AssemblyName>
<TargetFrameworkVersion>v2.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>True</DebugSymbols>
Expand All @@ -35,7 +35,6 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down Expand Up @@ -127,6 +126,10 @@
<AndroidResource Include="Resources\Values-sw600dp\dimens.xml" />
<AndroidResource Include="Resources\Values-sw600dp-land\dimens.xml" />
<AndroidResource Include="Resources\Values-xlarge\dimens.xml" />
<AndroidResource Include="Resources\Drawable\actionbar_btn_darkblue.xml" />
<AndroidResource Include="Resources\Drawable\actionbar_background_darkblue.xml" />
<AndroidResource Include="Resources\Drawable\bottomactionbar_btn_darkblue.xml" />
<AndroidResource Include="Resources\Drawable\bottomactionbar_background_darkblue.xml" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 Johan Nilsson <http://markupartist.com>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >

<item>
<shape android:shape="rectangle" >
<size android:height="@dimen/actionbar_height" />
<solid android:color="@color/actionbar_accentcolor_darkblue" />
</shape>
</item>

<item android:bottom="@dimen/actionbar_accentheight">
<shape android:shape="rectangle" >
<size android:height="@dimen/actionbar_accentheight" />
<solid android:color="@color/actionbar_maincolor_darkblue" />
</shape>
</item>
</layer-list>
51 changes: 51 additions & 0 deletions LegacyBar.Library/Resources/Drawable/actionbar_btn_darkblue.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 Johan Nilsson <http://markupartist.com>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Non focused states -->
<item
android:state_focused="false"
android:state_selected="false"
android:state_pressed="false"
android:drawable="@color/actionbar_maincolor_darkblue"
/>
<item
android:state_focused="false"
android:state_selected="true"
android:state_pressed="false"
android:drawable="@color/actionbar_pressedcolor_darkblue"
/>

<!-- Focused states -->
<item
android:state_focused="true"
android:state_selected="false"
android:state_pressed="false"
android:drawable="@color/actionbar_pressedcolor_darkblue"
/>
<item
android:state_focused="true"
android:state_selected="true"
android:state_pressed="false"
android:drawable="@color/actionbar_pressedcolor_darkblue"
/>

<!-- Pressed -->
<item
android:state_pressed="true"
android:drawable="@color/actionbar_pressedcolor_darkblue"
/>
</selector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 Johan Nilsson <http://markupartist.com>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >

<item>
<shape android:shape="rectangle" >
<size android:height="@dimen/actionbar_height" />
<solid android:color="@color/actionbar_accentcolor" />
</shape>
</item>

<item android:top="@dimen/actionbar_accentheight">
<shape android:shape="rectangle" >
<size android:height="@dimen/actionbar_accentheight" />
<solid android:color="@color/actionbar_maincolor" />
</shape>
</item>



</layer-list>-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/bottomactionbar_maincolor_darkblue" />
</shape>
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 Johan Nilsson <http://markupartist.com>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Non focused states -->
<item
android:state_focused="false"
android:state_selected="false"
android:state_pressed="false"
android:drawable="@color/bottomactionbar_maincolor_darkblue"
/>
<item
android:state_focused="false"
android:state_selected="true"
android:state_pressed="false"
android:drawable="@color/bottomactionbar_pressedcolor_darkblue"
/>

<!-- Focused states -->
<item
android:state_focused="true"
android:state_selected="false"
android:state_pressed="false"
android:drawable="@color/bottomactionbar_pressedcolor_darkblue"
/>
<item
android:state_focused="true"
android:state_selected="true"
android:state_pressed="false"
android:drawable="@color/bottomactionbar_pressedcolor_darkblue"
/>

<!-- Pressed -->
<item
android:state_pressed="true"
android:drawable="@color/bottomactionbar_pressedcolor_darkblue"
/>
</selector>
Loading