Sketchware-Pro / Sketchware-Pro

Sketchware Pro's sources in Java. Now anyone can contribute to Sketchware Pro.
https://sketchware.pro
Other
847 stars 251 forks source link

[feature request] Material Design 3 #814

Closed srt54558 closed 1 year ago

srt54558 commented 1 year ago

Hello, Would it me possible to implement Material you? Like In the background color switcher, there should be a "system color" option. Would be nice! The apps looks old and need the modern design of android 12/12.1/13/14

srt54558 commented 1 year ago

/storage/emulated/0/.sketchware/mysc/601/app/src/main/res/layout/main.xml:16: error: resource style/Widget.MaterialComponents.Button (aka com.my.newproject:style/Widget.MaterialComponents.Button) not found. /storage/emulated/0/.sketchware/mysc/601/app/src/main/res/layout/main.xml:16: error: attribute backgroundTint (aka com.my.newproject:backgroundTint) not found. /storage/emulated/0/.sketchware/mysc/601/app/src/main/res/layout/main.xml:16: error: attribute cornerRadius (aka com.my.newproject:cornerRadius) not found. /storage/emulated/0/.sketchware/mysc/601/app/src/main/res/layout/main.xml:16: error: resource style/TextAppearance.MaterialComponents.Button (aka com.my.newproject:style/TextAppearance.MaterialComponents.Button) not found. error: failed linking file resources.

This happens when the material button is put in the app. I have android 13 AOSP

xbzyaw commented 1 year ago

/storage/emulated/0/.sketchware/mysc/601/app/src/main/res/layout/main.xml:16: error: resource style/Widget.MaterialComponents.Button (aka com.my.newproject:style/Widget.MaterialComponents.Button) not found. /storage/emulated/0/.sketchware/mysc/601/app/src/main/res/layout/main.xml:16: error: attribute backgroundTint (aka com.my.newproject:backgroundTint) not found. /storage/emulated/0/.sketchware/mysc/601/app/src/main/res/layout/main.xml:16: error: attribute cornerRadius (aka com.my.newproject:cornerRadius) not found. /storage/emulated/0/.sketchware/mysc/601/app/src/main/res/layout/main.xml:16: error: resource style/TextAppearance.MaterialComponents.Button (aka com.my.newproject:style/TextAppearance.MaterialComponents.Button) not found. error: failed linking file resources.

This happens when the material button is put in the app. I have android 13 AOSP

it's your project that has the error not the swpro bug

PranavPurwar commented 1 year ago

You haven't enabled appcompat and/or have skipped material library in Library excluder

PranavPurwar commented 1 year ago

@K-plus69 you need to modify styles.xml file using command blocks and set the theme to use MaterialYou

srt54558 commented 1 year ago

Hi, thanks! I accidentally didn't enabled appCompat

But how do I enable material you?

JavkhlanK commented 1 year ago

Duplicate of #460.

JavkhlanK commented 1 year ago

@K-plus69 I just explained how to enable it in #460, check it out.