updating some style here and there

This commit is contained in:
tibbi 2021-11-07 19:56:12 +01:00
parent b82f39e8b1
commit 5381f189b3
5 changed files with 13 additions and 2 deletions

View File

@ -55,7 +55,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:76498ebadd' implementation 'com.github.SimpleMobileTools:Simple-Commons:5cd2e8dc9b'
implementation 'me.grantland:autofittextview:0.2.1' implementation 'me.grantland:autofittextview:0.2.1'
implementation 'net.objecthunter:exp4j:0.4.8' implementation 'net.objecthunter:exp4j:0.4.8'
} }

View File

@ -74,6 +74,12 @@ class MainActivity : SimpleActivity(), Calculator {
} }
vibrateOnButtonPress = config.vibrateOnButtonPress vibrateOnButtonPress = config.vibrateOnButtonPress
val adjustedPrimaryColor = getAdjustedPrimaryColor()
arrayOf(btn_percent, btn_power, btn_root, btn_clear, btn_reset, btn_divide, btn_multiply, btn_plus, btn_minus, btn_equals, btn_decimal).forEach{
it.setTextColor(adjustedPrimaryColor)
}
} }
override fun onPause() { override fun onPause() {

View File

@ -32,6 +32,10 @@ class SettingsActivity : SimpleActivity() {
arrayOf(settings_color_customization_label, settings_general_settings_label).forEach { arrayOf(settings_color_customization_label, settings_general_settings_label).forEach {
it.setTextColor(getAdjustedPrimaryColor()) it.setTextColor(getAdjustedPrimaryColor())
} }
arrayOf(settings_color_customization_holder, settings_general_settings_holder).forEach {
it.background.applyColorFilter(baseConfig.backgroundColor.getContrastColor())
}
} }
override fun onCreateOptionsMenu(menu: Menu): Boolean { override fun onCreateOptionsMenu(menu: Menu): Boolean {

View File

@ -46,6 +46,7 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:paddingLeft="@dimen/activity_margin" android:paddingLeft="@dimen/activity_margin"
android:paddingRight="@dimen/activity_margin" /> android:paddingRight="@dimen/activity_margin" />
</RelativeLayout> </RelativeLayout>
<ImageView <ImageView