You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To support all colours you can update LabelColors.kt as follows (although I'm not sure why black labels dont appear):
packagecom.github.oryanmat.trellowidget.util.colorimportandroid.graphics.ColorconstvalBLACK="#8590A2"constvalBLACK_DARK="#626F86"constvalBLACK_LIGHT="#DCDFE4"constvalBLUE="#579DFF"constvalBLUE_DARK="#0C66E4"constvalBLUE_LIGHT="#CCE0FF"constvalGREEN="#4BCE97"constvalGREEN_DARK="#1F845A"constvalGREEN_LIGHT="#BAF3DB"constvalLIME="#94C748"constvalLIME_DARK="#5B7F24"constvalLIME_LIGHT="#D3F1A7"constvalORANGE="#FEA362"constvalORANGE_DARK="#C25100"constvalORANGE_LIGHT="#FEDEC8"constvalPINK="#E774BB"constvalPINK_DARK="#AE4787"constvalPINK_LIGHT="#FDD0EC"constvalPURPLE="#9F8FEF"constvalPURPLE_DARK="#6E5DC6"constvalPURPLE_LIGHT="#DFD8FD"constvalRED="#F87168"constvalRED_DARK="#C9372C"constvalRED_LIGHT="#FFD5D2"constvalSKY="#6CC3E0"constvalSKY_DARK="#227D9B"constvalSKY_LIGHT="#C6EDFB"constvalYELLOW="#F5CD47"constvalYELLOW_DARK="#946F00"constvalYELLOW_LIGHT="#F8E6A0"val colors =mapOf(
"black" to Color.parseColor(BLACK),
"black_dark" to Color.parseColor(BLACK_DARK),
"black_light" to Color.parseColor(BLACK_LIGHT),
"blue" to Color.parseColor(BLUE),
"blue_dark" to Color.parseColor(BLUE_DARK),
"blue_light" to Color.parseColor(BLUE_LIGHT),
"green" to Color.parseColor(GREEN),
"green_dark" to Color.parseColor(GREEN_DARK),
"green_light" to Color.parseColor(GREEN_LIGHT),
"lime" to Color.parseColor(LIME),
"lime_dark" to Color.parseColor(LIME_DARK),
"lime_light" to Color.parseColor(LIME_LIGHT),
"orange" to Color.parseColor(ORANGE),
"orange_dark" to Color.parseColor(ORANGE_DARK),
"orange_light" to Color.parseColor(ORANGE_LIGHT),
"pink" to Color.parseColor(PINK),
"pink_dark" to Color.parseColor(PINK_DARK),
"pink_light" to Color.parseColor(PINK_LIGHT),
"purple" to Color.parseColor(PURPLE),
"purple_dark" to Color.parseColor(PURPLE_DARK),
"purple_light" to Color.parseColor(PURPLE_LIGHT),
"red" to Color.parseColor(RED),
"red_dark" to Color.parseColor(RED_DARK),
"red_light" to Color.parseColor(RED_LIGHT),
"sky" to Color.parseColor(SKY),
"sky_dark" to Color.parseColor(SKY_DARK),
"sky_light" to Color.parseColor(SKY_LIGHT),
"yellow" to Color.parseColor(YELLOW),
"yellow_dark" to Color.parseColor(YELLOW_DARK),
"yellow_light" to Color.parseColor(YELLOW_LIGHT),
null to Color.parseColor(BLACK_LIGHT))
The text was updated successfully, but these errors were encountered:
Missing colors are more of a bug than a UI issue. Trello's API document is outdated, and the actual response contains color values that TrelloWidget can't map properly.
In Trello's web app, there are two sets of color values based on theme. The ones mentioned above are the Light theme values.
TrelloWidget has a customizable theme, and the resulting label colors have a factor of the foreground color to create a rather responsive UI.
Overall, I think it's perfectly fine to just add the missing colors, but one can discuss the approach to blending label colors based on custom theme.
Only the basic colour palette is supported.
To support all colours you can update
LabelColors.kt
as follows (although I'm not sure why black labels dont appear):The text was updated successfully, but these errors were encountered: