This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kde4 ===> mac style javascript

Tags: None
(comma "," separated)
nowardev
Registered Member
Posts
244
Karma
0
OS

kde4 ===> mac style javascript

Sun May 08, 2011 3:28 pm
i don't know well the mac style but i have created this javascript that should be a "kind of mac style"

Image

as usual other stuff here http://nowardev.wordpress.com/2011/05/0 ... mac-style/
sorry ihave no time to write the full story here xD lazy man :D

Code: Select all
   var panel = new Panel
if (panelIds.length == 1) {
    // panel.location = 'bottom'
    panel.location = 'top'
}

panel.height = 25

launcher = panel.addWidget("simplelauncher");
launcher.writeConfig("format", "Description");
launcher.writeConfig("showMenuTitles", "true");
launcher.writeConfig("views", "Applications,Favorites,Computer,Settings,RunCommand,Leave");

var dolphin = panel.addWidget("quicklaunch");
dolphin.writeConfig("iconUrls","file:////usr/share/applications/kde4/dolphin.desktop");

var menubar = panel.addWidget("menubar")
//menubar.writeConfig("useButtonFormFactor", "false");

panel.addWidget("panelspacer_internal")

pager = panel.addWidget("pager");
pager.writeConfig("rows", "1");

var help = panel.addWidget("quicklaunch")
//qlaunch.writeConfig("iconSize", "24")
help.writeConfig("iconUrls","file:///usr/share/applications/kde4/Help.desktop")

panel.addWidget("trash")
var systemtray = panel.addWidget("systemtray")

var clock = panel.addWidget("digital-clock");
clock.writeConfig("showDate", "true");
clock.writeConfig("showDay", "true");
clock.writeConfig("showSeconds", "true");
clock.writeConfig("showYear", "true");
clock.writeConfig("showShadow", "false");
clock.writeConfig("showYear", "true");
//clock.writeConfig("showTimezone", "true");
clock.writeConfig("plainClockFont", "Serif,12,-1,5,75,0,0,0,0,0");
clock.writeConfig("useCustomColor", "true");
clock.writeConfig("plainClockColor", "255,255,255");
clock.writeConfig("plainClockDrawShadow", "false");

lockout = panel.addWidget("lockout");
//lockout.writeConfig("showHibernateButton","true");
lockout.writeConfig("showLogoutButton","true");
lockout.writeConfig("showLockButton","false");
lockout.writeConfig("showSleepButton","false");
lockout.writeConfig("showSwitchUserButton","false");


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]