mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-07 09:38:52 -06:00
HistoryChart: Fix transparency
This commit is contained in:
@@ -26,8 +26,8 @@ import org.isoron.platform.gui.AndroidDataView
|
||||
import org.isoron.platform.time.JavaLocalDateFormatter
|
||||
import org.isoron.uhabits.core.models.Habit
|
||||
import org.isoron.uhabits.core.ui.screens.habits.show.views.HistoryCardPresenter
|
||||
import org.isoron.uhabits.core.ui.views.DarkTheme
|
||||
import org.isoron.uhabits.core.ui.views.HistoryChart
|
||||
import org.isoron.uhabits.core.ui.views.WidgetTheme
|
||||
import org.isoron.uhabits.core.utils.DateUtils
|
||||
import org.isoron.uhabits.widgets.views.GraphWidgetView
|
||||
import java.util.Locale
|
||||
@@ -51,7 +51,7 @@ class HistoryWidget(
|
||||
habit = habit,
|
||||
isSkipEnabled = prefs.isSkipEnabled,
|
||||
firstWeekday = prefs.firstWeekday,
|
||||
theme = DarkTheme(),
|
||||
theme = WidgetTheme(),
|
||||
)
|
||||
(widgetView.dataView as AndroidDataView).apply {
|
||||
(this.view as HistoryChart).series = model.series
|
||||
@@ -65,7 +65,7 @@ class HistoryWidget(
|
||||
view = HistoryChart(
|
||||
today = DateUtils.getTodayWithOffset().toLocalDate(),
|
||||
paletteColor = habit.color,
|
||||
theme = DarkTheme(),
|
||||
theme = WidgetTheme(),
|
||||
dateFormatter = JavaLocalDateFormatter(Locale.getDefault())
|
||||
)
|
||||
}
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:background="#ffff00">
|
||||
|
||||
<org.isoron.platform.gui.AndroidTestView
|
||||
android:layout_width="500dp"
|
||||
|
||||
Reference in New Issue
Block a user