mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-04-17 08:47:23 +02:00
updating commons
This commit is contained in:
parent
d717fe299c
commit
77458cc759
@ -56,7 +56,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:99a97f2e16'
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:d5e1100f27'
|
||||
implementation 'androidx.documentfile:documentfile:1.0.1'
|
||||
implementation "androidx.exifinterface:exifinterface:1.3.3"
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener {
|
||||
resumeCameraItems()
|
||||
setupPreviewImage(mIsInPhotoMode)
|
||||
scheduleFadeOut()
|
||||
mFocusCircleView.setStrokeColor(getAdjustedPrimaryColor())
|
||||
mFocusCircleView.setStrokeColor(getProperPrimaryColor())
|
||||
|
||||
if (mIsVideoCaptureIntent && mIsInPhotoMode) {
|
||||
handleTogglePhotoVideo()
|
||||
|
@ -57,9 +57,9 @@ class SettingsActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
private fun setupSectionColors() {
|
||||
val adjustedPrimaryColor = getAdjustedPrimaryColor()
|
||||
val properPrimaryColor = getProperPrimaryColor()
|
||||
arrayListOf(shutter_label, startup_label, saving_label).forEach {
|
||||
it.setTextColor(adjustedPrimaryColor)
|
||||
it.setTextColor(properPrimaryColor)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,6 +6,7 @@ import android.graphics.Paint
|
||||
import android.os.Handler
|
||||
import android.view.ViewGroup
|
||||
import com.simplemobiletools.camera.extensions.config
|
||||
import com.simplemobiletools.commons.extensions.getProperPrimaryColor
|
||||
|
||||
class FocusCircleView(context: Context) : ViewGroup(context) {
|
||||
private val CIRCLE_RADIUS = 50f
|
||||
@ -22,7 +23,7 @@ class FocusCircleView(context: Context) : ViewGroup(context) {
|
||||
mHandler = Handler()
|
||||
mPaint = Paint().apply {
|
||||
style = Paint.Style.STROKE
|
||||
color = context.config.primaryColor
|
||||
color = context.getProperPrimaryColor()
|
||||
strokeWidth = 2f
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user