Skip to content

Conversation

@roedll
Copy link

@roedll roedll commented Mar 16, 2021

Some additions to allow to customize text sizes and font colors

Copy link
Contributor

@apksherlock apksherlock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello. Thanks for this PR and sorry for the late reply


@ColorInt
var defaultColor: Int = ContextCompat.getColor(context, R.color.survey_text)
var defaultColor: Int = ContextCompat.getColor(context, R.color.question_text)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why changing the name?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea was to have "survey_text" as default like before but at the same time be able to override specific element colors.
Have a look over at https://github.com/quickbirdstudios/SurveyKit/blob/2e8d00ee659b347f19f20ece226b47801f055349/survey/src/main/res/values/colors.xml#L23-L30: The default is that all the elements use the color defined in "survey_text" but an app using the SurveyKit library is able to override specific colors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants