icon colors by attribut and working on light theme colors

This commit is contained in:
osodebailar 2022-04-01 15:53:37 +02:00
parent 91c1260990
commit f3d4b32e53
23 changed files with 114 additions and 46 deletions

View file

@ -233,7 +233,7 @@ class ObjectivesFragment : DaggerFragment() {
}
}
holder.binding.accomplished.text = rh.gs(R.string.accomplished, dateUtil.dateAndTimeString(objective.accomplishedOn))
holder.binding.accomplished.setTextColor(-0x3e3e3f)
holder.binding.accomplished.setTextColor(rh.gac(context,R.attr.defaultTextColor))
holder.binding.verify.setOnClickListener {
receiverStatusStore.updateNetworkStatus()
if (binding.fake.isChecked) {

View file

@ -4,6 +4,6 @@
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:fillColor="?attr/defaultTextColor"
android:pathData="M15.41,7.41L14,6l-6,6 6,6 1.41,-1.41L10.83,12z"/>
</vector>

View file

@ -4,6 +4,6 @@
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:fillColor="?attr/defaultTextColor"
android:pathData="M10,6L8.59,7.41 13.17,12l-4.58,4.59L10,18l6,-6z"/>
</vector>

View file

@ -5,8 +5,8 @@
android:viewportHeight="24">
<path
android:pathData="M16.495,12.092l-4.921,-4.92l-1.444,1.444l2.468,2.467l-9.765,0l0,2.042l9.765,0l-2.468,2.467l1.444,1.444l4.921,-4.92l-0.012,-0.012z"
android:fillColor="@color/white"/>
android:fillColor="?attr/defaultTextColor"/>
<path
android:pathData="M18.682,2.975H5.152c-1.272,0 -2.307,1.035 -2.307,2.307v3.801h2.126V5.282c0,-0.1 0.081,-0.181 0.181,-0.181h13.53c0.1,0 0.181,0.081 0.181,0.181v13.436c0,0.1 -0.081,0.181 -0.181,0.181H5.152c-0.1,0 -0.181,-0.081 -0.181,-0.181v-3.593H2.845v3.593c0,1.272 1.035,2.307 2.307,2.307h13.53c1.272,0 2.308,-1.034 2.308,-2.307V5.282C20.989,4.01 19.954,2.975 18.682,2.975z"
android:fillColor="@color/white"/>
android:fillColor="?attr/defaultTextColor"/>
</vector>

View file

@ -4,6 +4,6 @@
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:fillColor="?attr/defaultTextColor"
android:pathData="M5.59,7.41L10.18,12l-4.59,4.59L7,18l6,-6 -6,-6zM16,6h2v12h-2z"/>
</vector>

View file

@ -2,7 +2,6 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:tint="@color/white"
android:viewportHeight="24"
android:viewportWidth="24">
<path

View file

@ -5,6 +5,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
card_view:cardElevation="0dp"
card_view:cardBackgroundColor="?attr/cardItemBackgroundColor"
card_view:cardUseCompatPadding="true">

View file

@ -5,8 +5,8 @@
android:viewportHeight="24">
<path
android:pathData="M13.351,12.926c-0.137,-0.003 -0.283,0.012 -0.337,-0.17c-0.046,-0.155 0.002,-0.266 0.122,-0.366c0.628,-0.523 0.741,-1.232 0.711,-2.042c0,-0.148 0.013,-0.348 -0.002,-0.546c-0.071,-0.91 -0.785,-1.606 -1.718,-1.686c-0.845,-0.073 -1.71,0.485 -1.862,1.344c-0.184,1.039 -0.278,2.111 0.636,2.933c0.115,0.104 0.172,0.206 0.12,0.363c-0.059,0.177 -0.201,0.171 -0.34,0.169c-0.347,-0.005 -0.668,0.083 -0.97,0.249c-0.973,0.535 -1.043,1.404 -0.165,2.061c1.299,0.974 3.949,0.841 5.144,-0.257c0.471,-0.433 0.508,-0.927 0.084,-1.408C14.4,13.146 13.918,12.937 13.351,12.926zM13.572,14.889c-1.202,0.486 -2.407,0.499 -3.555,-0.158c-0.579,-0.331 -0.548,-0.663 0.046,-0.976c0.248,-0.131 0.517,-0.214 0.801,-0.195c0.348,0.024 0.636,-0.047 0.765,-0.414c0.14,-0.399 0.306,-0.823 -0.105,-1.149c-0.661,-0.524 -0.705,-1.225 -0.666,-1.98c0.039,-0.729 0.51,-1.259 1.159,-1.248c0.662,0.011 1.13,0.529 1.146,1.269c0.003,0.119 0,0.239 0,0.456c0.097,0.503 -0.086,0.988 -0.564,1.377c-0.395,0.321 -0.385,0.738 -0.235,1.187c0.15,0.448 0.477,0.542 0.89,0.506c0.039,-0.003 0.08,0.004 0.118,0.014c0.389,0.093 0.879,0.167 0.948,0.599C14.392,14.615 13.901,14.756 13.572,14.889z"
android:fillColor="#6AE86D"/>
android:fillColor="?attr/userOptionColor"/>
<path
android:pathData="M19.107,10.662H17.78c-0.15,-0.648 -0.406,-1.253 -0.749,-1.801l0.941,-0.941c0.239,-0.239 0.239,-0.626 0,-0.864l-1.027,-1.027c-0.239,-0.239 -0.626,-0.239 -0.864,0l-0.941,0.941c-0.548,-0.343 -1.154,-0.599 -1.801,-0.749V4.893c0,-0.338 -0.274,-0.611 -0.611,-0.611h-1.453c-0.338,0 -0.611,0.274 -0.611,0.611V6.22c-0.648,0.15 -1.253,0.406 -1.801,0.749L7.92,6.028c-0.239,-0.239 -0.626,-0.239 -0.864,0L6.028,7.056c-0.239,0.239 -0.239,0.626 0,0.864l0.941,0.941C6.626,9.409 6.37,10.015 6.22,10.662H4.893c-0.338,0 -0.611,0.274 -0.611,0.611v1.453c0,0.338 0.274,0.611 0.611,0.611H6.22c0.15,0.648 0.406,1.253 0.749,1.801L6.028,16.08c-0.239,0.239 -0.239,0.626 0,0.864l1.027,1.027c0.239,0.239 0.626,0.239 0.864,0l0.941,-0.941c0.548,0.343 1.154,0.599 1.801,0.749v1.328c0,0.338 0.274,0.611 0.611,0.611h1.453c0.338,0 0.611,-0.274 0.611,-0.611V17.78c0.648,-0.15 1.254,-0.406 1.801,-0.749l0.941,0.941c0.239,0.239 0.626,0.239 0.864,0l1.027,-1.027c0.239,-0.239 0.239,-0.626 0,-0.864l-0.941,-0.941c0.343,-0.548 0.599,-1.154 0.749,-1.801h1.328c0.338,0 0.611,-0.274 0.611,-0.611v-1.453C19.719,10.936 19.445,10.662 19.107,10.662zM12,16.938c-2.723,0 -4.938,-2.215 -4.938,-4.938S9.277,7.063 12,7.063S16.938,9.277 16.938,12S14.723,16.938 12,16.938z"
android:fillColor="#6AE86D"/>
android:fillColor="?attr/userOptionColor"/>
</vector>

View file

@ -5,8 +5,8 @@
android:viewportHeight="24">
<path
android:pathData="M2.702,16.281c1.952,1.81 4.279,4.076 5.31,5.654v0.002c0,0 0.001,-0.001 0.001,-0.001c0,0 0.001,0.001 0.001,0.001v-0.002c1.032,-1.578 3.359,-3.844 5.31,-5.654l-1.325,-1.821c0,0 -1.578,1.408 -2.934,2.728V2.063H6.961l0,15.125c-1.356,-1.319 -2.934,-2.728 -2.934,-2.728L2.702,16.281z"
android:fillColor="@color/white"/>
android:fillColor="?attr/defaultTextColor"/>
<path
android:pathData="M10.676,16.281c1.952,1.81 4.279,4.076 5.31,5.654v0.002c0,0 0.001,-0.001 0.001,-0.001c0,0 0.001,0.001 0.001,0.001v-0.002c1.032,-1.578 3.359,-3.844 5.31,-5.654l-1.325,-1.821c0,0 -1.578,1.408 -2.934,2.728V2.063h-2.104v15.125c-1.356,-1.319 -2.934,-2.728 -2.934,-2.728L10.676,16.281z"
android:fillColor="@color/white"/>
android:fillColor="?attr/defaultTextColor"/>
</vector>

View file

@ -5,8 +5,8 @@
android:viewportHeight="24">
<path
android:pathData="M2.702,7.719c1.952,-1.81 4.279,-4.076 5.31,-5.654V2.063c0,0 0.001,0.001 0.001,0.001c0,0 0.001,-0.001 0.001,-0.001v0.002c1.032,1.578 3.359,3.844 5.31,5.654L11.999,9.54c0,0 -1.578,-1.408 -2.934,-2.728v15.125H6.961l0,-15.125C5.605,8.132 4.027,9.54 4.027,9.54L2.702,7.719z"
android:fillColor="@color/white"/>
android:fillColor="?attr/defaultTextColor"/>
<path
android:pathData="M10.676,7.719c1.952,-1.81 4.279,-4.076 5.31,-5.654V2.063c0,0 0.001,0.001 0.001,0.001c0,0 0.001,-0.001 0.001,-0.001v0.002c1.032,1.578 3.359,3.844 5.31,5.654L19.973,9.54c0,0 -1.578,-1.408 -2.934,-2.728v15.125h-2.104V6.813c-1.356,1.319 -2.934,2.728 -2.934,2.728L10.676,7.719z"
android:fillColor="@color/white"/>
android:fillColor="?attr/defaultTextColor"/>
</vector>

View file

@ -5,5 +5,5 @@
android:viewportHeight="24">
<path
android:pathData="M16.281,17.311c1.81,-1.952 4.076,-4.279 5.654,-5.31h0.002c0,0 -0.001,-0.001 -0.001,-0.001c0,0 0.001,-0.001 0.001,-0.001h-0.002c-1.578,-1.032 -3.844,-3.359 -5.654,-5.31L14.46,8.014c0,0 1.408,1.578 2.728,2.934H2.063v2.104h15.125c-1.319,1.356 -2.728,2.934 -2.728,2.934L16.281,17.311z"
android:fillColor="@color/white"/>
android:fillColor="?attr/defaultTextColor"/>
</vector>

View file

@ -5,5 +5,5 @@
android:viewportHeight="24">
<path
android:pathData="M11.272,18.783c2.66,-0.1 5.908,-0.143 7.753,0.243l0.001,0.001c0,0 0,-0.001 0,-0.001c0,0 0.001,0 0.001,0l-0.001,-0.001c-0.386,-1.845 -0.343,-5.093 -0.243,-7.753l-2.225,-0.351c0,0 -0.12,2.111 -0.146,4.003L5.717,4.229L4.229,5.717l10.695,10.695c-1.892,0.026 -4.003,0.146 -4.003,0.146L11.272,18.783z"
android:fillColor="@color/white"/>
android:fillColor="?attr/defaultTextColor"/>
</vector>

View file

@ -5,5 +5,5 @@
android:viewportHeight="24">
<path
android:pathData="M18.783,12.728c-0.1,-2.66 -0.143,-5.908 0.243,-7.753l0.001,-0.001c0,0 -0.001,0 -0.001,0c0,0 0,-0.001 0,-0.001l-0.001,0.001c-1.845,0.386 -5.093,0.343 -7.753,0.243l-0.351,2.225c0,0 2.111,0.12 4.003,0.146L4.229,18.283l1.488,1.488L16.412,9.076c0.026,1.892 0.146,4.003 0.146,4.003L18.783,12.728z"
android:fillColor="?attr/icCheckboxTrendColor"/>
android:fillColor="?attr/defaultTextColor"/>
</vector>

View file

@ -5,14 +5,14 @@
android:viewportHeight="24">
<path
android:pathData="M17.35,19.561m-1.147,0a1.147,1.147 0,1 1,2.294 0a1.147,1.147 0,1 1,-2.294 0"
android:fillColor="@color/white"/>
android:fillColor="?attr/defaultTextColor"/>
<path
android:pathData="M17.301,16.804c-0.459,0 -0.83,-0.372 -0.83,-0.831c0,-2.985 1.391,-4.027 2.51,-4.864c0.937,-0.702 1.614,-1.209 1.614,-2.849c0,-2.262 -2.173,-2.965 -2.964,-2.965c-1.705,0 -3.083,1.022 -3.778,2.804c-0.167,0.427 -0.65,0.64 -1.075,0.471c-0.427,-0.167 -0.638,-0.648 -0.471,-1.075c0.944,-2.417 2.935,-3.86 5.325,-3.86c1.865,0 4.626,1.47 4.626,4.626c0,2.472 -1.264,3.418 -2.28,4.178c-1.031,0.772 -1.844,1.38 -1.844,3.535C18.131,16.432 17.76,16.804 17.301,16.804z"
android:fillColor="@color/white"/>
android:fillColor="?attr/defaultTextColor"/>
<path
android:pathData="M6.846,19.561m-1.147,0a1.147,1.147 0,1 1,2.294 0a1.147,1.147 0,1 1,-2.294 0"
android:fillColor="@color/white"/>
android:fillColor="?attr/defaultTextColor"/>
<path
android:pathData="M6.797,16.804c-0.459,0 -0.83,-0.372 -0.83,-0.831c0,-2.985 1.391,-4.027 2.51,-4.864c0.937,-0.702 1.614,-1.209 1.614,-2.849c0,-2.262 -2.173,-2.965 -2.964,-2.965c-1.705,0 -3.083,1.022 -3.778,2.804c-0.167,0.427 -0.65,0.64 -1.075,0.471C1.845,8.403 1.635,7.922 1.801,7.495c0.944,-2.417 2.935,-3.86 5.325,-3.86c1.865,0 4.626,1.47 4.626,4.626c0,2.472 -1.264,3.418 -2.28,4.178c-1.031,0.772 -1.844,1.38 -1.844,3.535C7.627,16.432 7.256,16.804 6.797,16.804z"
android:fillColor="@color/white"/>
android:fillColor="?attr/defaultTextColor"/>
</vector>

View file

@ -5,5 +5,5 @@
android:viewportHeight="24">
<path
android:pathData="M6.689,16.281c1.952,1.81 4.279,4.076 5.31,5.654v0.002c0,0 0.001,-0.001 0.001,-0.001c0,0 0.001,0.001 0.001,0.001v-0.002c1.032,-1.578 3.359,-3.844 5.31,-5.654l-1.325,-1.821c0,0 -1.578,1.408 -2.934,2.728V2.063h-2.104v15.125c-1.356,-1.319 -2.934,-2.728 -2.934,-2.728L6.689,16.281z"
android:fillColor="@color/white"/>
android:fillColor="?attr/defaultTextColor"/>
</vector>

View file

@ -5,5 +5,5 @@
android:viewportHeight="24">
<path
android:pathData="M17.102,7.719c-1.952,-1.81 -4.279,-4.076 -5.31,-5.654V2.063c0,0 -0.001,0.001 -0.001,0.001c0,0 -0.001,-0.001 -0.001,-0.001v0.002c-1.032,1.578 -3.359,3.844 -5.31,5.654L7.805,9.54c0,0 1.578,-1.408 2.934,-2.728v15.125h2.104V6.813c1.356,1.319 2.934,2.728 2.934,2.728L17.102,7.719z"
android:fillColor="@color/white"/>
android:fillColor="?attr/defaultTextColor"/>
</vector>

View file

@ -3,6 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="info.nightscout.androidaps.activities.TDDStatsActivity">
@ -177,14 +178,14 @@
android:layout_width="match_parent"
android:layout_height="5dp" />
<info.nightscout.androidaps.utils.ui.SingleClickButton
<com.google.android.material.button.MaterialButton
android:id="@+id/reload"
style="?android:attr/buttonStyle"
style="@style/GrayButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:drawableStart="@drawable/ic_actions_refill"
android:text="@string/reload" />
android:text="@string/reload"
app:icon="@drawable/ic_actions_refill"
app:iconTint="@color/ic_actions_refill" />
</LinearLayout>

View file

@ -7,6 +7,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
card_view:cardElevation="0dp"
card_view:cardBackgroundColor="?attr/cardItemBackgroundColor">
<LinearLayout

View file

@ -88,6 +88,8 @@
<color name="uam">#c9bd60</color>
<color name="zt">#00d2d2</color>
<color name="calibration">#E83258</color>
<color name="bolusDataPointColor">#00FFFF</color>
<color name="profileSwitch">#00FFFF</color>
<color name="ribbonDefault">#5a595b</color>
<color name="daySelected">#D000FF00</color>
@ -213,6 +215,7 @@
<color name="announcement">#CF8BFE</color>
<color name="question">#FEAF05</color>
<color name="pumpHistory">#67DFE8</color>
<color name="userOption">#6AE86D</color>
<!-- Gray colors -->
<color name="darkgray">#323232</color>

View file

@ -162,7 +162,6 @@
<item name="mainTableBackground">@android:color/transparent</item>
<item name="dummyBackground">@color/dummy_background</item>
<!-- Icon Colors -->
<item name="icCheckboxTrendColor">@color/white</item>
<!-- Overview Buttons -->
<item name="icBolusColor">@color/colorInsulinButton</item>
<item name="icBolusCarbsColor">@color/colorCarbsButton</item>
@ -203,6 +202,22 @@
<item name="announcementColor">@color/announcement</item>
<item name="questionColor">@color/question</item>
<item name="pumpHistoryColor">@color/pumpHistory</item>
<item name="userOptionColor">@color/userOption</item>
<!---Graph data glucose value point colors-->
<item name="cobColor">@color/cob</item>
<item name="uamColor">@color/uam</item>
<item name="ztColor">@color/zt</item>
<item name="smbColor">@color/tempbasal</item>
<item name="bolusDataPointColor">@color/pumpHistory</item>
<item name="profileSwitchColor">@color/profileSwitch</item>
<item name="inMemoryColor">@color/white</item>
<item name="therapyEvent_NS_MBG">@color/red</item>
<item name="therapyEvent_FINGER_STICK_BG_VALUE">@color/red</item>
<item name="therapyEvent_EXERCISE">@color/blue</item>
<item name="therapyEvent_APS_OFFLINE">@color/mdtp_line_dark</item>
<item name="therapyEvent_Default">@color/mdtp_line_dark</item>
<!-- Graph specific colors -->
<item name="inrangeBackground">@color/inrangebackground</item>
</style>
<style name="Theme.MaterialComponents.DayNight.DarkActionBar" parent="Theme.MaterialComponents.DayNight.Bridge"/>
@ -251,6 +266,7 @@
<item name="android:textAllCaps">true</item>
</style>
<style name="MaterialPickerTheme" parent="android:Theme.Material.Dialog.Alert">
<item name="android:buttonBarPositiveButtonStyle">@style/PickerTextButton</item>
<item name="android:buttonBarNegativeButtonStyle">@style/PickerTextButton</item>
@ -258,6 +274,7 @@
<item name="android:colorPrimary">@color/okButtonText</item>
<item name="android:calendarTextColor">@color/okButtonText</item>
<item name="android:colorAccent">@color/okButtonText</item>
<item name="android:dialogCornerRadius">12dp</item>
</style>
<style name="PickerTextButton" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
<item name="android:textColor">@color/okButtonText</item>

View file

@ -179,4 +179,23 @@
<attr name="announcementColor" format="reference|color" />
<attr name="questionColor" format="reference|color" />
<attr name="pumpHistoryColor" format="reference|color" />
<attr name="userOptionColor" format="reference|color" />
<!---Glucose Value Color-->
<attr name="cobColor" format="reference|color" />
<attr name="uamColor" format="reference|color" />
<attr name="ztColor" format="reference|color" />
<attr name="smbColor" format="reference|color" />
<attr name="bolusDataPointColor" format="reference|color" />
<attr name="profileSwitchColor" format="reference|color" />
<attr name="inMemoryColor" format="reference|color" />
<attr name="therapyEvent_NS_MBG" format="reference|color" />
<attr name="therapyEvent_FINGER_STICK_BG_VALUE" format="reference|color" />
<attr name="therapyEvent_EXERCISE" format="reference|color" />
<attr name="therapyEvent_APS_OFFLINE" format="reference|color" />
<attr name="therapyEvent_Default" format="reference|color" />
<!-- Graph specific colors -->
<attr name="graphHorizontalLabelText" format="reference|color" />
<attr name="graphVerticalLabelText" format="reference|color" />
<attr name="inrangeBackground" format="reference|color" />
<attr name="graphGrid" format="reference|color" />
</resources>

View file

@ -2,13 +2,13 @@
<resources>
<!-- Default theme color -->
<!-- This section describes the main theme colors -->
<color name="colorPrimary">#787878</color>
<color name="colorPrimary">#FBF9FF</color>
<color name="colorPrimaryDark">#676767</color>
<color name="colorAccent">#40bbaa</color>
<color name="mdtp_white">#ffffff</color>
<color name="mdtp_line_dark">#808080</color>
<color name="colorLightGray">#d8d8d8</color>
<color name="cardColorBackground">@color/lightgray</color>
<color name="cardColorBackground">#CBCBCB</color>
<color name="gray">#BBBBBB</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
@ -36,8 +36,8 @@
<color name="tabSelectedText">@color/black_alpha_90</color>
<!-- Buttons-->
<color name="buttonBackground">#888888</color>
<color name="buttonText">#ffffff</color>
<color name="buttonBackground">@color/midlightgray</color>
<color name="buttonText">#000000</color>
<color name="okButtonText">@color/colorAccent</color>
<color name="okButtonSelected">#33969696</color>
@ -89,6 +89,10 @@
<color name="uam">#c9bd60</color>
<color name="zt">#00d2d2</color>
<color name="calibration">#E83258</color>
<color name="bolusDataPointColor">#00FFFF</color>
<color name="profileSwitch">#00FFFF</color>
<color name="red">#FF0000</color>
<color name="blue">#0000FF</color>
<color name="ribbonDefault">#5a595b</color>
<color name="daySelected">#D000FF00</color>
@ -144,8 +148,8 @@
<color name="metadataTextError">#FF5555</color>
<!-- Import/Export -->
<color name="importListAdditionalInfo">#BBBBBB</color>
<color name="importListFileName">#FFFFFF</color>
<color name="importListAdditionalInfo">#757575</color>
<color name="importListFileName">#000000</color>
<color name="ribbonWarning">#f4d700</color>
<color name="ribbonCritical">#ff0400</color>
@ -182,8 +186,8 @@
<color name="cardObjectiveText">#779ECB</color>
<color name="colorAcceptTempButton">#ffffbb33</color>
<color name="colorTreatmentButton">#67dfe8</color>
<color name="colorAcceptTempButton">#E19701</color>
<color name="colorTreatmentButton">#42A5F5</color>
<color name="colorInsulinButton">#67dfe8</color>
<color name="colorCarbsButton">#E19701</color>
<color name="colorCalibrationButton">#e93057</color>
@ -214,6 +218,7 @@
<color name="announcement">#CF8BFE</color>
<color name="question">#FEAF05</color>
<color name="pumpHistory">#42A5F5</color>
<color name="userOption">#66BB6A</color>
<!-- Gray colors -->
<color name="darkgray">#323232</color>
@ -225,6 +230,7 @@
<color name="lightSandGray">#72000000</color>
<color name="sandGray">#c8666666</color>
<color name="midgray">#B2B2B2</color>
<color name="midlightgray">#D6D7D7</color>
<color name="lightgray">#4dB1B1B1</color>
<color name="mdtp_button_selected">#33969696</color>
<color name="plastic">#EBEBEA</color>

View file

@ -3,8 +3,8 @@
<style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar">
<!---Example light theme colors -->
<item name="colorPrimary">@color/plastic</item>
<item name="colorOnPrimary">@color/aaps_theme_light_onPrimary</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorOnPrimary">@color/black</item>
<item name="colorSecondary">@color/aaps_theme_light_secondary</item>
<item name="colorOnSecondary">@color/aaps_theme_light_onSecondary</item>
<item name="colorError">@color/aaps_theme_light_error</item>
@ -18,6 +18,8 @@
<item name="dialogTitleBackground">@color/dialog_title_background</item>
<item name="dialogTitleColor">@color/dialog_title_color</item>
<item name="dialogTitleIconTint">@color/dialog_title_icon_tint</item>
<!-- Actionbar -->
<item name="actionBarTheme">@style/ThemeOverlay.MaterialComponents.ActionBar</item>
<!-- New MaterialComponents attributes. -->
<item name="colorPrimaryVariant">@color/primaryLightColorDefault</item>
<item name="colorSecondaryVariant">@color/secondaryLightColorDefault</item>
@ -87,7 +89,7 @@
<!---Delete selection -->
<item name="trashBinTintColor">@color/black</item>
<!---Dialog -->
<item name="activity_title_backgroundColor">@color/activity_title_background</item>
<item name="activity_title_backgroundColor">@color/dialog_title_background</item>
<!---Automation -->
<item name="ribbonDefaultColor">@color/ribbonDefault</item>
<item name="ribbonWarningColor">@color/ribbonWarning</item>
@ -168,8 +170,6 @@
<item name="mainTableBackground">@android:color/transparent</item>
<item name="dummyBackground">@color/dummy_background</item>
<!-- Icon Colors -->
<!-- Trend Arrow -->
<item name="icCheckboxTrendColor">@color/plastic_grey</item>
<!-- Overview Buttons -->
<item name="icBolusColor">@color/bolus</item>
<item name="icBolusCarbsColor">@color/colorCarbsButton</item>
@ -210,6 +210,22 @@
<item name="announcementColor">@color/announcement</item>
<item name="questionColor">@color/question</item>
<item name="pumpHistoryColor">@color/pumpHistory</item>
<item name="userOptionColor">@color/userOption</item>
<!---Graph data glucose value point colors-->
<item name="cobColor">@color/cob</item>
<item name="uamColor">@color/uam</item>
<item name="ztColor">@color/zt</item>
<item name="smbColor">@color/tempbasal</item>
<item name="bolusDataPointColor">@color/pumpHistory</item>
<item name="profileSwitchColor">@color/profileSwitch</item>
<item name="inMemoryColor">@color/white</item>
<item name="therapyEvent_NS_MBG">@color/red</item>
<item name="therapyEvent_FINGER_STICK_BG_VALUE">@color/red</item>
<item name="therapyEvent_EXERCISE">@color/blue</item>
<item name="therapyEvent_APS_OFFLINE">@color/mdtp_line_dark</item>
<item name="therapyEvent_Default">@color/mdtp_line_dark</item>
<!-- Graph specific colors -->
<item name="inrangeBackground">@color/black_alpha_20</item>
</style>
<style name="Theme.MaterialComponents.DayNight.DarkActionBar" parent="Theme.MaterialComponents.DayNight.Bridge"/>
@ -271,14 +287,18 @@
<item name="android:textAllCaps">true</item>
</style>
<style name="MaterialPickerTheme" parent="android:Theme.Material.Dialog.Alert">
<style name="MaterialPickerTheme" parent="Theme.MaterialComponents.Light.Dialog.Alert">
<item name="android:buttonBarPositiveButtonStyle">@style/PickerTextButton</item>
<item name="android:buttonBarNegativeButtonStyle">@style/PickerTextButton</item>
<item name="android:textColorPrimary">@color/okButtonText</item>
<item name="android:colorPrimary">@color/okButtonText</item>
<item name="android:calendarTextColor">@color/okButtonText</item>
<item name="android:colorAccent">@color/okButtonText</item>
<item name="android:textColorPrimary">@color/black</item>
<item name="android:colorPrimary">@color/colorPrimary</item>
<item name="android:calendarTextColor">@color/black</item>
<item name="android:colorAccent">@color/dialog_title_background</item>
<item name="colorSecondary">@color/dialog_title_background</item>
<item name="android:dialogCornerRadius">12dp</item>
</style>
<style name="PickerTextButton" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
<item name="android:textColor">@color/okButtonText</item>
</style>
@ -293,6 +313,7 @@
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">center_vertical</item>
<item name="android:gravity">center</item>
<item name="android:elevation">8dp</item>
<item name="android:layout_marginStart">@dimen/gray_material_button_margin_horizontal</item>
<item name="android:layout_marginEnd">@dimen/gray_material_button_margin_horizontal</item>
<item name="android:textAllCaps">true</item>