Skip to content
Browse files

Added solarized colors

  • Loading branch information...
1 parent 30b8f05 commit e610a55933c8e2366ef111b225351add3d51bdac @marciol committed
View
78 AndroidManifest.xml
@@ -0,0 +1,78 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="net.momodalo.app.vimtouch"
+ android:versionCode="21100030"
+ android:versionName="2.6r2"
+ android:installLocation="auto"
+ >
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
+ <uses-sdk
+ android:minSdkVersion="9"
+ android:targetSdkVersion="17"
+ />
+ <application android:icon="@drawable/app_vimtouch"
+ android:label="@string/application_vimtouch"
+ android:allowBackup="true"
+ >
+ <activity android:name="VimTouch"
+ android:theme="@style/VimTheme"
+ android:launchMode="singleInstance"
+ android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
+ android:windowSoftInputMode="adjustResize|stateHidden">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <action android:name="android.intent.action.EDIT" />
+ <action android:name="android.intent.action.PICK" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="text/*" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <action android:name="android.intent.action.EDIT" />
+ <action android:name="android.intent.action.PICK" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="application/octet-stream" />
+ <data android:mimeType="application/javascript" />
+ <data android:mimeType="application/json" />
+ <data android:mimeType="application/atom+xml" />
+ <data android:mimeType="application/soap+xm" />
+ <data android:mimeType="application/xhtml+xml" />
+ <data android:mimeType="application/xml-dtd" />
+ <data android:mimeType="application/x-latex" />
+ <data android:mimeType="application/*xml" />
+ <data android:mimeType="application/ecmascript" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="com.googlecode.android_scripting.action.EDIT_SCRIPT" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+ <activity android:name="VimTouchPreferences"/>
+ <activity android:name=".VimFileActivity"
+ android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
+ android:excludeFromRecents="true"
+ />
+ <activity android:name=".VimFileDialog"
+ android:excludeFromRecents="true"
+ />
+ <activity android:name="InstallProgress"
+ android:theme="@style/VimInstallTheme"
+ android:launchMode="singleInstance"
+ android:label="@string/install_activity"
+ >
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <category android:name="android.intent.category.BROWSABLE" />
+ <data android:scheme="http" />
+ <data android:scheme="ftp" />
+ <data android:host="*" />
+ <data android:pathPattern=".*\\.vrz" />
+ </intent-filter>
+ </activity>
+ <service android:name="VimTermService" />
+ </application>
+</manifest>
View
2 jni/Application.mk
@@ -0,0 +1,2 @@
+APP_STL := stlport_static
+APP_PLATFORM := android-5
View
92 libraries/SlidingMenu/build.xml
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="SlidingMenu" default="help">
+
+ <!-- The local.properties file is created and updated by the 'android' tool.
+ It contains the path to the SDK. It should *NOT* be checked into
+ Version Control Systems. -->
+ <property file="local.properties" />
+
+ <!-- The ant.properties file can be created by you. It is only edited by the
+ 'android' tool to add properties to it.
+ This is the place to change some Ant specific build properties.
+ Here are some properties you may want to change/update:
+
+ source.dir
+ The name of the source directory. Default is 'src'.
+ out.dir
+ The name of the output directory. Default is 'bin'.
+
+ For other overridable properties, look at the beginning of the rules
+ files in the SDK, at tools/ant/build.xml
+
+ Properties related to the SDK location or the project target should
+ be updated using the 'android' tool with the 'update' action.
+
+ This file is an integral part of the build system for your
+ application and should be checked into Version Control Systems.
+
+ -->
+ <property file="ant.properties" />
+
+ <!-- if sdk.dir was not set from one of the property file, then
+ get it from the ANDROID_HOME env var.
+ This must be done before we load project.properties since
+ the proguard config can use sdk.dir -->
+ <property environment="env" />
+ <condition property="sdk.dir" value="${env.ANDROID_HOME}">
+ <isset property="env.ANDROID_HOME" />
+ </condition>
+
+ <!-- The project.properties file is created and updated by the 'android'
+ tool, as well as ADT.
+
+ This contains project specific properties such as project target, and library
+ dependencies. Lower level build properties are stored in ant.properties
+ (or in .classpath for Eclipse projects).
+
+ This file is an integral part of the build system for your
+ application and should be checked into Version Control Systems. -->
+ <loadproperties srcFile="project.properties" />
+
+ <!-- quick check on sdk.dir -->
+ <fail
+ message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
+ unless="sdk.dir"
+ />
+
+ <!--
+ Import per project custom build rules if present at the root of the project.
+ This is the place to put custom intermediary targets such as:
+ -pre-build
+ -pre-compile
+ -post-compile (This is typically used for code obfuscation.
+ Compiled code location: ${out.classes.absolute.dir}
+ If this is not done in place, override ${out.dex.input.absolute.dir})
+ -post-package
+ -post-build
+ -pre-clean
+ -->
+ <import file="custom_rules.xml" optional="true" />
+
+ <!-- Import the actual build file.
+
+ To customize existing targets, there are two options:
+ - Customize only one target:
+ - copy/paste the target into this file, *before* the
+ <import> task.
+ - customize it to your needs.
+ - Customize the whole content of build.xml
+ - copy/paste the content of the rules files (minus the top node)
+ into this file, replacing the <import> task.
+ - customize to your needs.
+
+ ***********************
+ ****** IMPORTANT ******
+ ***********************
+ In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
+ in order to avoid having your file be overridden by tools such as "android update project"
+ -->
+ <!-- version-tag: 1 -->
+ <import file="${sdk.dir}/tools/ant/build.xml" />
+
+</project>
View
20 libraries/SlidingMenu/proguard-project.txt
@@ -0,0 +1,20 @@
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
View
2 libraries/SlidingMenu/project.properties
@@ -9,5 +9,5 @@
android.library=true
# Project target.
-target=android-18
+target=android-19
View
92 libraries/aFileChooser/build.xml
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="aFileChooser" default="help">
+
+ <!-- The local.properties file is created and updated by the 'android' tool.
+ It contains the path to the SDK. It should *NOT* be checked into
+ Version Control Systems. -->
+ <property file="local.properties" />
+
+ <!-- The ant.properties file can be created by you. It is only edited by the
+ 'android' tool to add properties to it.
+ This is the place to change some Ant specific build properties.
+ Here are some properties you may want to change/update:
+
+ source.dir
+ The name of the source directory. Default is 'src'.
+ out.dir
+ The name of the output directory. Default is 'bin'.
+
+ For other overridable properties, look at the beginning of the rules
+ files in the SDK, at tools/ant/build.xml
+
+ Properties related to the SDK location or the project target should
+ be updated using the 'android' tool with the 'update' action.
+
+ This file is an integral part of the build system for your
+ application and should be checked into Version Control Systems.
+
+ -->
+ <property file="ant.properties" />
+
+ <!-- if sdk.dir was not set from one of the property file, then
+ get it from the ANDROID_HOME env var.
+ This must be done before we load project.properties since
+ the proguard config can use sdk.dir -->
+ <property environment="env" />
+ <condition property="sdk.dir" value="${env.ANDROID_HOME}">
+ <isset property="env.ANDROID_HOME" />
+ </condition>
+
+ <!-- The project.properties file is created and updated by the 'android'
+ tool, as well as ADT.
+
+ This contains project specific properties such as project target, and library
+ dependencies. Lower level build properties are stored in ant.properties
+ (or in .classpath for Eclipse projects).
+
+ This file is an integral part of the build system for your
+ application and should be checked into Version Control Systems. -->
+ <loadproperties srcFile="project.properties" />
+
+ <!-- quick check on sdk.dir -->
+ <fail
+ message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
+ unless="sdk.dir"
+ />
+
+ <!--
+ Import per project custom build rules if present at the root of the project.
+ This is the place to put custom intermediary targets such as:
+ -pre-build
+ -pre-compile
+ -post-compile (This is typically used for code obfuscation.
+ Compiled code location: ${out.classes.absolute.dir}
+ If this is not done in place, override ${out.dex.input.absolute.dir})
+ -post-package
+ -post-build
+ -pre-clean
+ -->
+ <import file="custom_rules.xml" optional="true" />
+
+ <!-- Import the actual build file.
+
+ To customize existing targets, there are two options:
+ - Customize only one target:
+ - copy/paste the target into this file, *before* the
+ <import> task.
+ - customize it to your needs.
+ - Customize the whole content of build.xml
+ - copy/paste the content of the rules files (minus the top node)
+ into this file, replacing the <import> task.
+ - customize to your needs.
+
+ ***********************
+ ****** IMPORTANT ******
+ ***********************
+ In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
+ in order to avoid having your file be overridden by tools such as "android update project"
+ -->
+ <!-- version-tag: 1 -->
+ <import file="${sdk.dir}/tools/ant/build.xml" />
+
+</project>
View
20 libraries/aFileChooser/proguard-project.txt
@@ -0,0 +1,20 @@
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
View
2 libraries/aFileChooser/project.properties
@@ -8,5 +8,5 @@
# project structure.
# Project target.
-target=android-18
+target=android-19
android.library=true
View
2 libraries/emulatorview/project.properties
@@ -12,4 +12,4 @@
android.library=true
# Project target.
-target=android-18
+target=android-19
View
2 project.properties
@@ -11,7 +11,7 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
-target=android-18
+target=android-19
android.library.reference.1=libraries/emulatorview/
android.library.reference.2=libraries/aFileChooser/
android.library.reference.3=libraries/SlidingMenu/
View
4 res/values/arrays.xml
@@ -73,6 +73,8 @@
<item>Amber text on black</item>
<item>Red text on black</item>
<item>Holo blue on black</item>
+ <item>Solarized Light</item>
+ <item>Solarized Dark</item>
</string-array>
<!-- Do not localize entryvalues -->
@@ -84,6 +86,8 @@
<item>4</item>
<item>5</item>
<item>6</item>
+ <item>7</item>
+ <item>8</item>
</string-array>
<string-array name="entries_backaction_preference">
View
35 src/net/momodalo/app/vimtouch/VimSettings.java
@@ -82,23 +82,30 @@
public static final String SUROOT_KEY = "su_root";
public static final String DARKTHEME_KEY = "dark_theme";
- public static final int WHITE = 0xffffffff;
- public static final int BLACK = 0xff000000;
- public static final int BLUE = 0xff344ebd;
- public static final int GREEN = 0xff00ff00;
- public static final int AMBER = 0xffffb651;
- public static final int RED = 0xffff0113;
- public static final int HOLO_BLUE = 0xff33b5e5;
+ public static final int WHITE = 0xffffffff;
+ public static final int BLACK = 0xff000000;
+ public static final int BLUE = 0xff344ebd;
+ public static final int GREEN = 0xff00ff00;
+ public static final int AMBER = 0xffffb651;
+ public static final int RED = 0xffff0113;
+ public static final int HOLO_BLUE = 0xff33b5e5;
+ public static final int SOLARIZED_FG = 0xff657b83;
+ public static final int SOLARIZED_BG = 0xfffdf6e3;
+ public static final int SOLARIZED_DARK_FG = 0xff839496;
+ public static final int SOLARIZED_DARK_BG = 0xff002b36;
+
// foreground index, foreground color, background index, background color
public static final int[][] COLOR_SCHEMES = {
- {BLACK, WHITE},
- {WHITE, BLACK},
- {WHITE, BLUE},
- {GREEN, BLACK},
- {AMBER, BLACK},
- {RED, BLACK},
- {HOLO_BLUE, BLACK}
+ {BLACK, WHITE},
+ {WHITE, BLACK},
+ {WHITE, BLUE},
+ {GREEN, BLACK},
+ {AMBER, BLACK},
+ {RED, BLACK},
+ {HOLO_BLUE, BLACK},
+ {SOLARIZED_FG, SOLARIZED_BG},
+ {SOLARIZED_DARK_FG, SOLARIZED_DARK_BG}
};
public static final int ACTION_BAR_MODE_NONE = 0;
View
2 src/net/momodalo/app/vimtouch/VimTermSession.java
@@ -144,7 +144,7 @@ private void initializeSession() {
mSuRoot = settings.getSuRoot();
if(mSuRoot){
try {
- Process p = Runtime.getRuntime().exec("su -c ls");
+ Process p = Runtime.getRuntime().exec("su");
p.waitFor();
} catch (Exception e) {
mSuRoot = false;

0 comments on commit e610a55

Please sign in to comment.
Something went wrong with that request. Please try again.