Skip to content

Commit

Permalink
dark mode, 2x1 and 1x1 widget, renaming, splash, icon
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Oct 27, 2020
1 parent 469cb1f commit 981e6e7
Show file tree
Hide file tree
Showing 91 changed files with 274 additions and 74 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ APK is available in the <a href="https://github.com/m1ga/ti.coronawidget/release

**Note**
There are still some bugs and features that could be implemented:
* currently no "1 place" widget
* if the icon is gone you have to restart the app to get new updates. Sometimes the system will kill the background process

## Build
Expand Down
Binary file modified app/app/assets/android/appicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/app/assets/android/default.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/app/assets/android/default.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
10 changes: 10 additions & 0 deletions app/app/assets/semantic.colors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"windowBackgroundColor": {
"dark": "#212121",
"light": "#ffffff"
},
"text": {
"dark": "#ffffff",
"light": "#212121"
}
}
6 changes: 3 additions & 3 deletions app/app/styles/app.tss
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"TextField": {
width: 300,
borderColor: "#000",
borderColor: "text",
borderWidth: 1,
color: "#000"
color: "text"
}

'Label': {
color: '#000',
color: 'text',
width: Ti.UI.SIZE,
height: Ti.UI.SIZE,
left: 0
Expand Down
9 changes: 3 additions & 6 deletions app/app/styles/index.tss
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
".container": {
backgroundColor:"white",
"Window" : {
backgroundColor: "windowBackgroundColor",
exitOnClose: false
}



".content":{
".content" : {
width: 300,
layout: 'vertical',
height: Ti.UI.SIZE,
Expand Down
2 changes: 1 addition & 1 deletion app/app/views/index.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Alloy>
<Window class="container" onOpen="onOpen">
<Window onOpen="onOpen">
<ScrollView class="content">
<Label text="Town 1"/>
<TextField id="tf_town1" onChange="onChange"/>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

File renamed without changes.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7eae63fd5783beb8e9fcd8fbdc571c0c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c87ed8b82867d73346db7ec5d6c8e0e956fb45fa
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9562ad9915ca9f25af03c8441c86fac21fe217cd0b83874c6c010af4fcf44858
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0f2dab8caea4846a46f5dab25e5dc81568679b7be221087e84329de253e6a1f843db7ee9b131f3b3860c1ec5b08e8437f30c136ab8205de1cf6122dc871fdec3
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bf6a69cdeaede68a5e78f13d224856af
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3e4ff200346509c0fcc65f701fba16a8a193e56f
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
37eab885e5f6516777f1133a2ea9cee6c53ad8e074ddd6c132be27d6d5f2c341
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
68534580f333d2d8fb28dc8d08672cf60a74d63d91231f57e77a76c271938f357d83e56ad328bfce3bed56ccbdcfd91f38023a1f86c2767be87df76e7e815452
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>ti</groupId>
<artifactId>widget</artifactId>
<version>2.0.0</version>
<version>1.0.1</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
df0ac6fec317505e5961390469a369a8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b99d347497e3452281d71436e938f62d7120cdc5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9464ce2bd0d9245a82a3f6eb993b6c1d87cc897b9af6a78f22fe611a3743d103
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
434af93246b41ec3bcb2f95973bcefb91c7b5954497dc716a0eeee460b8edba6c286383623748ee4c3a3f90ac0a126fca5cefcc1efd96595270546c658595169
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
<groupId>ti</groupId>
<artifactId>widget</artifactId>
<versioning>
<latest>1.0.0</latest>
<release>1.0.0</release>
<latest>1.0.1</latest>
<release>1.0.1</release>
<versions>
<version>1.0.0</version>
<version>1.0.1</version>
</versions>
<lastUpdated>20201020161630</lastUpdated>
<lastUpdated>20201027164959</lastUpdated>
</versioning>
</metadata>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
261eadd8f0e8d562c6383c1e2e0329af
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dda099c5ae6f301957bc7661a2735a259e488aca
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
07e922f16242b55969f423f52521233a4daa9acbe03c067ac920a7d7a4900b46
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
744d7d154d09ed6fa82fb818ae1bd2db0d28b824d8233b3e4feed2a410e153698867996ef82cd533d85a1ef70f0e210bd20f43551a3061169044e7ee64f4a44f
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 1.0.0
version: 1.0.1
apiversion: 4
architectures: arm64-v8a armeabi-v7a x86 x86_64
description: ti.widget
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<application>
<receiver android:exported="true" android:name=".SimpleWidgetProvider" android:enabled="true">
<receiver android:exported="true" android:name=".WidgetProvider1x1" android:enabled="true">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/example_appwidget_info"/>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/appwidget_info1x1"/>
</receiver>

<receiver android:exported="true" android:name=".WidgetProvider2x1" android:enabled="true">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/appwidget_info2x1"/>
</receiver>

</application>
Expand Down
78 changes: 78 additions & 0 deletions virus.svg
Binary file removed widget/android/dist/ti.widget-android-1.0.0.zip
Binary file not shown.
Binary file added widget/android/dist/ti.widget-android-1.0.1.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion widget/android/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 1.0.0
version: 1.0.1
apiversion: 4
architectures: arm64-v8a armeabi-v7a x86 x86_64
description: ti.widget
Expand Down
37 changes: 37 additions & 0 deletions widget/android/platform/android/res/layout/appwidget1x1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/widget"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/backgroundlayout"
android:padding="5dip"
android:gravity="center_vertical"
android:orientation="horizontal">

<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">

<TextView
android:id="@+id/town1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="3dip"
android:text="-"
android:textColor="#fff" />

<TextView
android:id="@+id/numValue1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="3dip"
android:text="-"
android:textColor="#fff"
android:textSize="22sp"
android:textStyle="bold" />

</LinearLayout>

</LinearLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,33 @@

</LinearLayout>

<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">

<TextView
android:id="@+id/town2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="right"
android:padding="3dip"
android:text="-"
android:textColor="#fff" />
<TextView
android:id="@+id/town2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="right"
android:padding="3dip"
android:text="-"
android:textColor="#fff" />

<TextView
android:id="@+id/numValue2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="right"
android:padding="3dip"
android:text="-"
android:textColor="#fff"
android:textSize="22sp"
android:textStyle="bold" />
<TextView
android:id="@+id/numValue2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="right"
android:padding="3dip"
android:text="-"
android:textColor="#fff"
android:textSize="22sp"
android:textStyle="bold" />


</LinearLayout>
</LinearLayout>

</LinearLayout>
Loading

0 comments on commit 981e6e7

Please sign in to comment.