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

panel.location = 'up' doesn't work well

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

kdesudo kate /usr/share/kde4/apps/plasma/layout-templates/org.kde.plasma-desktop.defaultPanel/contents/layout.js

edited with this
panel.location = 'up'

ok maybe because should be top ???? :D --->testing

Code: Select all
var panel = new Panel
if (panelIds.length == 1) {
    // we are the only panel, so set the location for the user panel.location = 'bottom'
    panel.location = 'up'
}

panel.height = 27
panel.addWidget("launcher")
panel.addWidget("pastebin")
panel.addWidget("pager")
panel.addWidget("tasks")
panel.addWidget("systemtray")
panel.addWidget("digital-clock")



now when i remove the ~/.kde the panel is not on up but down and i has a bad visualization.


this is my init js

Code: Select all
var topLeftScreen = 0
var rect = screenGeometry(0)

// find our "top left" screen to put the folderview on it
for (var i = 1; i < screenCount; ++i) {
    var g = screenGeometry(i)

    if (g.x <= rect.x && g.top >= rect.top) {
        rect = g
        topLeftScreen = i
    }
}

for (var i = 0; i < screenCount; ++i) {
    var desktop = new Activity("desktop")
    desktop.screen = i
    desktop.wallpaperPlugin = 'image'
    desktop.wallpaperMode = 'SingleImage'

    print("for screen " + i)
    if (i == topLeftScreen) {
        var folderview = desktop.addWidget("folderview")
        folderview.writeConfig("url", "desktop:/")
    }
}

loadTemplate("org.kde.plasma-desktop.defaultPanel")

nowardev
Registered Member
Posts
244
Karma
0
OS
FIXED :D

stupid error :P

panel.location = 'top'


Bookmarks



Who is online

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