Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Action Bar Icon Kivy

I am having Code as above for my action bar in kivy

ActionBar:
		background_color:0,191,255,0.5
		pos_hint: {'top':1}
		
		ActionView:
			ActionPrevious:
				with_previous: False
				text:"    [b]Dhobiwala.com[/b]"
				
				app_icon:""
                ### I make app_icon as a blank string...but it takes default icon...I totally want to remove icon from my action bar

				markup:True
				font_size:"16dp"
				on_release:root.Show_Devlopers_Info()
				

as per above code...I want to remove icon from status bar....I can not even found anything in documentation of Kivy...Anyone has some Idea?

like image 320
Nisarg Avatar asked May 26 '16 11:05

Nisarg


1 Answers

It looks like disabling an icon is impossible.
Reference: Kivy sources @ github (https://github.com/kivy/kivy/blob/856b305c0c876e53e802f1ac9ae16c21fa91ac1e/kivy/uix/actionbar.py#L214).
Relevant part:

if not self.app_icon:
        self.app_icon = 'data/logo/kivy-icon-32.png'

You may try to circumvent this by using a small completely transparent image as an icon.

Also, you can try to reduce the size of an icon to 0. Have a look at properties app_icon_width and app_icon_height: https://kivy.org/docs/api-kivy.uix.actionbar.html#kivy.uix.actionbar.ActionPrevious.app_icon_height

like image 164
leovp Avatar answered Sep 20 '22 13:09

leovp