Improvement requests
: K-Meleon Forum
Use this forum to talk about a feature you're missing. Use the bug tracker to report it if necessary.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=desga2] @ JamesD: I can help you with this, if you have any question ask me. I can do the button for privacy bar, I made icons and text buttons with [url=http://icofx.ro/]IcoFX[/url], while you could worked in macro code. You can use an existed privacy bar button, for example "Images". In your skin "toolbars.cfg" file "Images" privacy button is: [code] Images{ macros(pref_ToggleImages) Block Images. Press F9 to toggle. privhot.bmp[3] privcold.bmp[3] } [/code] In macros "main.kmm" file you can find "pref_ToggleImages" function: [code] pref_ToggleImages{ macroinfo=_("Toggle image loading"); menuchecked=(getpref(INT,$pref_Images)==2); togglepref(INT,$pref_Images,1,2); &_pref_SyncButtons; statusbar(sub("%s",getpref(INT,$pref_Images)==2?$off:$on,_("Image loading %s"))); } [/code] And the related "_pref_SyncButtons" macro function: [code] # Toolbar Integration _pref_SyncButtons{ $__c="CheckButton"; $__m=",macros(pref_Toggle"; # Privacy Bar (make sure the toolbar name is correct): $__toolbar="&Privacy Bar"; pluginmsg(toolbars,$__c,$__toolbar.$__m."Animation),".(getpref(STRING,$pref_Animation)=="none"?1:0)); pluginmsg(toolbars,$__c,$__toolbar.$__m."Colors),".(getpref(BOOL,$pref_Colors)?0:1)); pluginmsg(toolbars,$__c,$__toolbar.$__m."Cookies),".(getpref(INT,$pref_Cookies)==2?1:0)); [b]pluginmsg(toolbars,$__c,$__toolbar.$__m."Images),".(getpref(INT,$pref_Images)==1?0:1));[/b] pluginmsg(toolbars,$__c,$__toolbar.$__m."Java),".(getpref(BOOL,$pref_Java)?0:1)); pluginmsg(toolbars,$__c,$__toolbar.$__m."JavaScript),".(getpref(BOOL,$pref_JavaScript)?0:1)); pluginmsg(toolbars,$__c,$__toolbar.$__m."Popups),".(getpref(BOOL,$pref_Popups)?1:0)); pluginmsg(toolbars,$__c,$__toolbar.$__m."Referer),".(getpref(INT,$pref_Referer)==0?1:0)); # Main Bar (make sure the toolbar name is correct): $__toolbar="&Main Bar"; pluginmsg(toolbars,$__c,$__toolbar.$__m."Popups),".(getpref(BOOL,$pref_Popups)?1:0)); } [/code][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development