https://github.com/iconic/open-iconic アイコンは元々黒で、.png形式です。Kivyのラベルとアイコンを統合する最も良い方法
私のキャンバスに上向きの矢印を追加したいと思います。
アイコンをインポートする方法が見つかりましたが、アイコンの色を変更できないという問題がありました。 Kivy内でアイコンの色を変更することはできますか、使用する色ごとに別の.png画像を作成する必要はありますか?
<VitalBoard>:
canvas:
Color:
rgba: 0.17, 0.89, 0.89, 1
hsv: 0.48, 0.80, 0.34
Rectangle:
pos: root.width * 2/3 + 20, root.height * 13/24 + 20
size: root.width * 2/6 - 10 , root.height * 9/24 - 20
Label:
font_size: 70
text: "0"
pos: root.width * 2/3 + 20, root.height * 13/24 + 20
size: root.width * 2/6 - 10 , root.height * 9/24 - 20
Image:
source: 'open-iconic/png/arrow-thick-top-8x.png'
pos: root.width * 2/3 + 20, root.height * 13/24 + 20
size: root.width * 2/6 - 10 , root.height * 9/24 - 20
width: 74
kivy内の画像の色を変更することはできません。それらをkivyにロードする前に、ペイントプログラムでそれらを変更する必要があります。 –