update resources for new design

This commit is contained in:
Nathan Freitas 2015-02-02 11:26:43 -05:00
parent 7c303f1589
commit 48f40b3494
5 changed files with 181 additions and 65 deletions

View File

@ -4,15 +4,44 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent" android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:backgroundTint="@color/panel_background" >
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:background="@color/panel_background"
android:layout_height="?attr/actionBarSize"
/>
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:id="@+id/content_frame"
> >
<LinearLayout android:gravity="center_vertical|center_horizontal" <LinearLayout android:gravity="center_vertical|center_horizontal"
android:orientation="vertical" android:layout_width="match_parent" android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@color/panel_background"
> >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/panel_background_dark"
>
<!-- <!--
<TextView android:id="@+id/lblStatus" <TextView android:id="@+id/lblStatus"
android:text="status status status" android:text="status status status"
@ -80,6 +109,7 @@
android:gravity="center_vertical" android:gravity="center_vertical"
android:fontFamily="sans-serif-light" android:fontFamily="sans-serif-light"
/> />
<TextView <TextView
android:id="@+id/trafficUp" android:id="@+id/trafficUp"
android:textColor="#ccff2a" android:textColor="#ccff2a"
@ -93,23 +123,42 @@
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>
<FrameLayout
<org.torproject.android.ImageProgressView
android:id="@+id/imgStatus"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1"
>
<org.torproject.android.ui.ImageProgressView
android:id="@+id/imgStatus"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:padding="0dp" android:padding="0dp"
android:layout_weight="1"
android:src="@drawable/toroff"
android:layout_gravity="center_horizontal" />
android:src="@drawable/toroff"
android:layout_gravity="center_horizontal|center_vertical" />
<TextView
android:id="@+id/lblStatus"
android:textColor="@android:color/white"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20sp"
android:gravity="center_vertical"
android:fontFamily="sans-serif-light"
android:text=" "
android:background="#aa333333"
android:layout_gravity="center_horizontal|center_vertical"
android:layout_marginBottom="30dp"
/>
</FrameLayout>
<LinearLayout android:gravity="center_horizontal" <LinearLayout android:gravity="center_horizontal"
android:orientation="horizontal" android:layout_width="match_parent" android:orientation="horizontal" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="5dp" android:padding="5dp"
android:background="@color/panel_background" android:background="@color/panel_background_dark"
> >
@ -131,6 +180,19 @@
/> />
</LinearLayout> </LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="240dp"
android:layout_height="match_parent"
android:orientation="vertical"
android:id="@+id/left_drawer"
android:layout_gravity="start"
android:background="@color/panel_background"
>
</LinearLayout>
</android.support.v4.widget.DrawerLayout>
</LinearLayout> </LinearLayout>

69
res/menu/orbot_main.xml Normal file
View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright (C) 2008 Esmertec AG.
* Copyright (C) 2008 The Android Open Source Project
*
* 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.
*/
-->
<menu xmlns:yourapp="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/menu_start"
android:title="@string/menu_start"
android:icon="@drawable/ic_action_start"
yourapp:showAsAction="never"
/>
<item android:id="@+id/menu_settings"
android:title="@string/menu_settings"
android:icon="@drawable/ic_action_settings"
yourapp:showAsAction="always"
/>
<!--
<item android:id="@+id/menu_verify"
android:title="@string/menu_verify_browser"
android:icon="@drawable/ic_action_browse"
yourapp:showAsAction="never"
/>
<item android:id="@+id/menu_vpn"
android:title="@string/menu_vpn"
yourapp:showAsAction="never"/>
-->
<item android:id="@+id/menu_about"
android:title="@string/menu_about"
android:icon="@drawable/ic_menu_about"
yourapp:showAsAction="never"
/>
<item android:id="@+id/menu_wizard"
android:title="@string/menu_wizard"
android:icon="@drawable/ic_menu_goto"
yourapp:showAsAction="never"
/>
<item android:id="@+id/menu_exit"
android:title="@string/menu_exit"
android:icon="@drawable/ic_menu_exit"
yourapp:showAsAction="never"
/>
</menu>

3
res/raw/pluto.properties Normal file
View File

@ -0,0 +1,3 @@
obfs2=obfsclient
obfs3=obfsclient
scramblesuit=obfsclient

6
res/values/colors.xml Normal file
View File

@ -0,0 +1,6 @@
<resources>
<color name="panel_background">#460072</color>
<color name="panel_background_dark">#240020</color>
</resources>

View File

@ -8,14 +8,6 @@ android:title="@string/pref_start_boot_title"
android:summary="@string/pref_start_boot_summary" android:summary="@string/pref_start_boot_summary"
android:enabled="true"/> android:enabled="true"/>
<CheckBoxPreference
android:defaultValue="false"
android:key="has_root"
android:title="@string/pref_has_root"
android:summary="@string/pref_has_root_summary"
android:enabled="true"/>
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="true" android:defaultValue="true"
android:key="pref_persistent_notifications" android:key="pref_persistent_notifications"
@ -39,18 +31,17 @@ android:title="@string/pref_use_expanded_notifications_title"/>
android:defaultValue="en"> android:defaultValue="en">
</ListPreference> </ListPreference>
<!--
<CheckBoxPreference
android:defaultValue="false"
android:key="use_whispercore"
android:title="@string/pref_use_whispercore"
android:summary="@string/pref_use_whispercore_summary"
android:enabled="true"/>
-->
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory android:title="@string/pref_trans_proxy_group"> <PreferenceCategory android:title="@string/pref_trans_proxy_group">
<CheckBoxPreference
android:defaultValue="false"
android:key="has_root"
android:title="@string/pref_has_root"
android:summary="@string/pref_has_root_summary"
android:enabled="true"/>
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="false" android:defaultValue="false"
android:key="pref_transparent" android:key="pref_transparent"
@ -269,20 +260,5 @@ android:summary="@string/pref_transproxy_flush_summary"
android:enabled="true" android:enabled="true"
android:title="@string/pref_transproxy_flush_title"/> android:title="@string/pref_transproxy_flush_title"/>
<!--
<CheckBoxPreference
android:defaultValue="false"
android:key="pref_transparent_port_fallback"
android:summary="@string/pref_transparent_port_fallback_summary"
android:enabled="true"
android:title="@string/pref_transparent_port_fallback_title"/>
<EditTextPreference android:key="pref_port_list"
android:defaultValue="80,443,8080,8888,8443"
android:title="@string/pref_transparent_port_title"
android:summary="@string/pref_transparent_port_summary"
android:dialogTitle="@string/pref_transparent_port_dialog"
/>
-->
</PreferenceCategory> </PreferenceCategory>
</PreferenceScreen> </PreferenceScreen>