ColorPicker icon indicating copy to clipboard operation
ColorPicker copied to clipboard

Custom fonts/typefaces

Open amzer opened this issue 5 years ago • 3 comments

Is there a way to set custom font for dialog title and the buttons? If so, please explain how to do it.

amzer avatar Mar 24 '19 09:03 amzer

@amzer We have forked the project and added styling option, you can find it here: https://github.com/PolideaInternal/ColorPicker

martawoldanska avatar Jun 25 '19 09:06 martawoldanska

you can set on your styles.xml <style name="DesignActivityTheme" parent="ActivityTheme"> <item name="buttonBarPositiveButtonStyle">@style/positiveBtnStyle</item> </style> <!--confirm button--> <style name="positiveBtnStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog"> <item name="android:textColor">@color/colorPrimary</item> </style>

and set on your AndridManifest.xml <activity android:name=".business.qrcode.qrcode_design.QrcodeDesignActivity" android:theme="@style/DesignActivityTheme"/>

gb18030 avatar Oct 11 '19 08:10 gb18030

you can set on your styles.xml <style name="DesignActivityTheme" parent="ActivityTheme"> <item name="buttonBarPositiveButtonStyle">@style/positiveBtnStyle</item> </style> <!--confirm button--> <style name="positiveBtnStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog"> <item name="android:textColor">@color/colorPrimary</item> </style>

and set on your AndridManifest.xml <activity android:name=".business.qrcode.qrcode_design.QrcodeDesignActivity" android:theme="@style/DesignActivityTheme"/>

thanks it works for select button, but how to change title text color?

floweri avatar Dec 12 '20 15:12 floweri