Skip to content

Commit

Permalink
Merge pull request #121 from forrestguice/prep-release-0.5.1
Browse files Browse the repository at this point in the history
Prep release 0.5.1
  • Loading branch information
forrestguice authored Dec 3, 2017
2 parents adad320 + 9ffb7df commit ae8ecf8
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 10 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
### ~

### v0.5.1 (2017-12-03)
* changes default data source to time4a-noaa (fallback remains sunrisesunsetlib).
* fixes 2x1 widget to show seconds (e.g. "Tomorrow will be 1m 4s shorter").
* restricts auto-backup to app settings and themes (now excludes widget settings and sqlite db).
* adds collapsed UI state to ColorChooser; expanded by clicking label.
* adds to theme config activity: sunrise, sunset, and noon icon colors (fill, stroke, stroke width).
Expand All @@ -8,10 +12,11 @@
* fixes widgets to allow for vertical resize.
* lists 2x1 widget (previously only accessible by resizing 1x1 widget).
* fixes 2x1 layout for api versions <= 15 (previously inaccessible).
* updates dependency (Time4A 3.37-2017c).
* updates dependency (Time4A 3.37-2017c).
* updates translations (eo, pl).

### v0.5.0 (2017-11-18)
* automatic backups reenabled.
* auto-backup reenabled.
* adds data source; Time4A (time4a-simple, time4a-noaa, time4a-cc, time4a-time4j) (contributions by MenoData) (#103).
* adds support for custom themes; theme editor activity (add / edit), theme selector activity (copy / delete / export) (#7).
* adds widget option "show noon" (#102); adds noon field to 1x3 widget, adds noon to flippable widget.
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ android
minSdkVersion 10
//noinspection OldTargetApi
targetSdkVersion 25
versionCode 13
versionName "0.5.0"
versionCode 14
versionName "0.5.1"

buildConfigField "java.util.Date", "BUILD_TIME", "new java.util.Date(" + getDateAsMillis() + "L)"
buildConfigField "String", "GIT_HASH", "\"${getGitHash()}\""
Expand Down
45 changes: 45 additions & 0 deletions app/src/main/res/layout/layout_themeconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
<TextView
android:id="@+id/editLabel_titleColor"
style="@style/ColorEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"

android:nextFocusUp="@+id/edit_titleSize"
android:nextFocusLeft="@+id/editLabel_titleSize"
Expand All @@ -159,6 +160,7 @@
<EditText
android:id="@+id/edit_titleColor"
style="@style/ColorEdit" android:visibility="gone"
android:fontFamily="monospace"

android:nextFocusUp="@+id/edit_titleSize"
android:nextFocusLeft="@+id/editLabel_titleSize"
Expand All @@ -171,6 +173,7 @@
<ImageButton
android:id="@+id/editButton_titleColor"
style="@style/ColorEditButton"
android:layout_marginEnd="4dp" android:layout_marginRight="4dp"
android:contentDescription="@string/configLabel_themeColorTitle" />

</LinearLayout>
Expand All @@ -188,6 +191,7 @@
<TextView
android:id="@+id/editLabel_suffixColor"
style="@style/ColorEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"

android:nextFocusUp="@+id/edit_titleSize"
android:nextFocusLeft="@+id/editLabel_titleColor"
Expand All @@ -200,6 +204,7 @@
<EditText
android:id="@+id/edit_suffixColor"
style="@style/ColorEdit" android:visibility="gone"
android:fontFamily="monospace"

android:nextFocusUp="@+id/edit_titleSize"
android:nextFocusLeft="@+id/editLabel_titleColor"
Expand All @@ -212,6 +217,7 @@
<ImageButton
android:id="@+id/editButton_suffixColor"
style="@style/ColorEditButton"
android:layout_marginEnd="4dp" android:layout_marginRight="4dp"
android:contentDescription="@string/configLabel_themeColorSuffix" />

</LinearLayout>
Expand All @@ -227,6 +233,7 @@
<TextView
android:id="@+id/editLabel_textColor"
style="@style/ColorEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"

android:nextFocusUp="@+id/editLabel_titleColor"
android:nextFocusLeft="@+id/editLabel_titleColor"
Expand All @@ -239,6 +246,7 @@
<EditText
android:id="@+id/edit_textColor"
style="@style/ColorEdit" android:visibility="gone"
android:fontFamily="monospace"

android:nextFocusUp="@+id/editLabel_titleColor"
android:nextFocusLeft="@+id/editLabel_titleColor"
Expand All @@ -251,6 +259,7 @@
<ImageButton
android:id="@+id/editButton_textColor"
style="@style/ColorEditButton"
android:layout_marginEnd="4dp" android:layout_marginRight="4dp"
android:contentDescription="@string/configLabel_themeColorText" />

</LinearLayout>
Expand All @@ -268,6 +277,7 @@
<TextView
android:id="@+id/editLabel_timeColor"
style="@style/ColorEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"

android:nextFocusUp="@+id/editLabel_titleColor"
android:nextFocusLeft="@+id/editLabel_timeColor"
Expand All @@ -280,6 +290,7 @@
<EditText
android:id="@+id/edit_timeColor"
style="@style/ColorEdit" android:visibility="gone"
android:fontFamily="monospace"

android:nextFocusUp="@+id/editLabel_titleColor"
android:nextFocusLeft="@+id/editLabel_timeColor"
Expand All @@ -292,6 +303,7 @@
<ImageButton
android:id="@+id/editButton_timeColor"
style="@style/ColorEditButton"
android:layout_marginEnd="4dp" android:layout_marginRight="4dp"
android:contentDescription="@string/configLabel_themeColorTime" />

</LinearLayout>
Expand All @@ -308,6 +320,7 @@
<TextView
android:id="@+id/editLabel_sunriseColor"
style="@style/ColorEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"

android:nextFocusUp="@+id/editLabel_textColor"
android:nextFocusLeft="@+id/editLabel_textColor"
Expand All @@ -320,6 +333,7 @@
<EditText
android:id="@+id/edit_sunriseColor"
style="@style/ColorEdit" android:visibility="gone"
android:fontFamily="monospace"

android:nextFocusUp="@+id/editLabel_textColor"
android:nextFocusLeft="@+id/editLabel_textColor"
Expand All @@ -332,6 +346,7 @@
<ImageButton
android:id="@+id/editButton_sunriseColor"
style="@style/ColorEditButton"
android:layout_marginEnd="4dp" android:layout_marginRight="4dp"
android:contentDescription="@string/configLabel_themeColorSunrise" />

</LinearLayout>
Expand All @@ -349,6 +364,7 @@
<TextView
android:id="@+id/editLabel_sunsetColor"
style="@style/ColorEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"

android:nextFocusUp="@+id/editLabel_textColor"
android:nextFocusLeft="@+id/editLabel_sunriseColor"
Expand All @@ -361,6 +377,7 @@
<EditText
android:id="@+id/edit_sunsetColor"
style="@style/ColorEdit" android:visibility="gone"
android:fontFamily="monospace"

android:nextFocusUp="@+id/editLabel_textColor"
android:nextFocusLeft="@+id/editLabel_sunriseColor"
Expand All @@ -373,6 +390,7 @@
<ImageButton
android:id="@+id/editButton_sunsetColor"
style="@style/ColorEditButton"
android:layout_marginEnd="4dp" android:layout_marginRight="4dp"
android:contentDescription="@string/configLabel_themeColorSunset" />

</LinearLayout>
Expand All @@ -389,6 +407,7 @@
<TextView
android:id="@+id/editLabel_sunriseFillColor"
style="@style/ColorEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"

android:nextFocusUp="@+id/editLabel_sunriseColor"
android:nextFocusLeft="@+id/editLabel_sunriseColor"
Expand All @@ -401,6 +420,7 @@
<EditText
android:id="@+id/edit_sunriseFillColor"
style="@style/ColorEdit" android:visibility="gone"
android:fontFamily="monospace"

android:nextFocusUp="@+id/editLabel_sunriseColor"
android:nextFocusLeft="@+id/editLabel_sunriseColor"
Expand All @@ -413,6 +433,7 @@
<ImageButton
android:id="@+id/editButton_sunriseFillColor"
style="@style/ColorEditButton"
android:layout_marginEnd="4dp" android:layout_marginRight="4dp"
android:contentDescription="@string/configLabel_themeColorFill" />

</LinearLayout>
Expand All @@ -430,6 +451,7 @@
<TextView
android:id="@+id/editLabel_sunsetFillColor"
style="@style/ColorEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"

android:nextFocusUp="@+id/editLabel_sunriseColor"
android:nextFocusLeft="@+id/editLabel_sunriseFillColor"
Expand All @@ -442,6 +464,7 @@
<EditText
android:id="@+id/edit_sunsetFillColor"
style="@style/ColorEdit" android:visibility="gone"
android:fontFamily="monospace"

android:nextFocusUp="@+id/editLabel_sunriseColor"
android:nextFocusLeft="@+id/editLabel_sunriseFillColor"
Expand All @@ -454,6 +477,7 @@
<ImageButton
android:id="@+id/editButton_sunsetFillColor"
style="@style/ColorEditButton"
android:layout_marginEnd="4dp" android:layout_marginRight="4dp"
android:contentDescription="@string/configLabel_themeColorFill" />

<CheckBox
Expand All @@ -475,6 +499,7 @@
<TextView
android:id="@+id/editLabel_sunriseStrokeColor"
style="@style/ColorEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"

android:nextFocusUp="@+id/editLabel_sunriseFillColor"
android:nextFocusLeft="@+id/editLabel_sunriseFillColor"
Expand All @@ -487,6 +512,7 @@
<EditText
android:id="@+id/edit_sunriseStrokeColor"
style="@style/ColorEdit" android:visibility="gone"
android:fontFamily="monospace"

android:nextFocusUp="@+id/editLabel_sunriseFillColor"
android:nextFocusLeft="@+id/editLabel_sunriseFillColor"
Expand All @@ -499,6 +525,7 @@
<ImageButton
android:id="@+id/editButton_sunriseStrokeColor"
style="@style/ColorEditButton"
android:layout_marginEnd="4dp" android:layout_marginRight="4dp"
android:contentDescription="@string/configLabel_themeColorBorder" />

</LinearLayout>
Expand All @@ -516,6 +543,7 @@
<TextView
android:id="@+id/editLabel_sunsetStrokeColor"
style="@style/ColorEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"

android:nextFocusUp="@+id/editLabel_sunriseFillColor"
android:nextFocusLeft="@+id/editLabel_sunriseStrokeColor"
Expand All @@ -528,6 +556,7 @@
<EditText
android:id="@+id/edit_sunsetStrokeColor"
style="@style/ColorEdit" android:visibility="gone"
android:fontFamily="monospace"

android:nextFocusUp="@+id/editLabel_sunriseFillColor"
android:nextFocusLeft="@+id/editLabel_sunriseStrokeColor"
Expand All @@ -540,6 +569,7 @@
<ImageButton
android:id="@+id/editButton_sunsetStrokeColor"
style="@style/ColorEditButton"
android:layout_marginEnd="4dp" android:layout_marginRight="4dp"
android:contentDescription="@string/configLabel_themeColorBorder" />

<CheckBox
Expand All @@ -561,6 +591,7 @@
<TextView
android:id="@+id/editLabel_noonColor"
style="@style/ColorEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"

android:nextFocusUp="@+id/editLabel_sunriseStrokeColor"
android:nextFocusLeft="@+id/editLabel_sunriseStrokeColor"
Expand All @@ -573,6 +604,7 @@
<EditText
android:id="@+id/edit_noonColor"
style="@style/ColorEdit" android:visibility="gone"
android:fontFamily="monospace"

android:nextFocusUp="@+id/editLabel_sunriseStrokeColor"
android:nextFocusLeft="@+id/editLabel_sunriseStrokeColor"
Expand All @@ -585,6 +617,7 @@
<ImageButton
android:id="@+id/editButton_noonColor"
style="@style/ColorEditButton"
android:layout_marginEnd="4dp" android:layout_marginRight="4dp"
android:contentDescription="@string/configLabel_themeColorNoon" />

<CheckBox
Expand All @@ -606,6 +639,7 @@
<TextView
android:id="@+id/editLabel_noonFillColor"
style="@style/ColorEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"

android:nextFocusUp="@+id/editLabel_noonColor"
android:nextFocusLeft="@+id/editLabel_noonColor"
Expand All @@ -618,6 +652,7 @@
<EditText
android:id="@+id/edit_noonFillColor"
style="@style/ColorEdit" android:visibility="gone"
android:fontFamily="monospace"

android:nextFocusUp="@+id/editLabel_noonColor"
android:nextFocusLeft="@+id/editLabel_noonColor"
Expand All @@ -630,6 +665,7 @@
<ImageButton
android:id="@+id/editButton_noonFillColor"
style="@style/ColorEditButton"
android:layout_marginEnd="4dp" android:layout_marginRight="4dp"
android:contentDescription="@string/configLabel_themeColorFill" />

</LinearLayout>
Expand All @@ -646,6 +682,7 @@
<TextView
android:id="@+id/editLabel_noonStrokeColor"
style="@style/ColorEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"

android:nextFocusUp="@+id/editLabel_noonFillColor"
android:nextFocusLeft="@+id/editLabel_noonFillColor"
Expand All @@ -658,6 +695,7 @@
<EditText
android:id="@+id/edit_noonStrokeColor"
style="@style/ColorEdit" android:visibility="gone"
android:fontFamily="monospace"

android:nextFocusUp="@+id/editLabel_noonFillColor"
android:nextFocusLeft="@+id/editLabel_noonFillColor"
Expand All @@ -670,6 +708,7 @@
<ImageButton
android:id="@+id/editButton_noonStrokeColor"
style="@style/ColorEditButton"
android:layout_marginEnd="4dp" android:layout_marginRight="4dp"
android:contentDescription="@string/configLabel_themeColorBorder" />

<CheckBox
Expand All @@ -691,6 +730,7 @@
<TextView
android:id="@+id/editLabel_iconStroke"
style="@style/SizeEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"
android:text="@string/configLabel_themeBorderWidthRiseSet" />

<EditText
Expand Down Expand Up @@ -719,6 +759,7 @@
<TextView
android:id="@+id/editLabel_noonIconStroke"
style="@style/SizeEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"
android:text="@string/configLabel_themeBorderWidthNoon" />

<EditText
Expand Down Expand Up @@ -764,6 +805,7 @@
<TextView
android:id="@+id/editLabel_timeSize"
style="@style/SizeEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBaseline_toBaselineOf="@+id/edit_timeSize"
android:text="@string/configLabel_themeSizeTime" />
Expand All @@ -781,6 +823,7 @@
<TextView
android:id="@+id/editLabel_suffixSize"
style="@style/SizeEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"
app:layout_constraintStart_toEndOf="@+id/edit_timeSize"
app:layout_constraintBaseline_toBaselineOf="@+id/edit_suffixSize"
android:layout_marginStart="16dp" android:layout_marginEnd="8dp"
Expand All @@ -800,6 +843,7 @@
<TextView
android:id="@+id/editLabel_titleSize"
style="@style/SizeEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBaseline_toBaselineOf="@+id/edit_titleSize"
android:text="@string/configLabel_themeSizeTitle" />
Expand All @@ -817,6 +861,7 @@
<TextView
android:id="@+id/editLabel_textSize"
style="@style/SizeEditLabel"
android:paddingStart="8dp" android:paddingEnd="8dp"
app:layout_constraintStart_toEndOf="@+id/edit_titleSize"
app:layout_constraintBaseline_toBaselineOf="@+id/edit_textSize"
android:layout_marginStart="16dp" android:layout_marginEnd="8dp"
Expand Down
Loading

0 comments on commit ae8ecf8

Please sign in to comment.