PDA

View Full Version : What do I need to edit?


exploder
February 10th, 2008, 07:19 AM
I want to remove the word "Linux" from this GDM theme to improve it. What part of the file do I need to edit to do this?

This is the GDM theme.

http://www.gnome-look.org/content/show.php/Ubuntu-Orange+%28modified%29?content=74917

Here is the file.

<?xml version="1.0"?>
<!DOCTYPE greeter SYSTEM "greeter.dtd">

<greeter>

<!-- first we take care of the background stuff -->
<item type="rect">
<normal color="#cccccc"/>
<pos x="0" y="0" width="100%" height="100%"/>
</item>

<item type="pixmap">
<normal file="background.jpeg" alpha="1"/>
<pos x="0" y="0" width="100%" height="100%"/>
</item>

<!-- the clock on topright -->
<item type="label" id="clock">
<normal color="#ffffff" font="Sans 10" alpha="0.8"/>
<pos x="-20" y="22" anchor="e"/>
<text>%c</text>
</item>

<item type="rect" id="timed-rect">
<show type="timed"/>
<normal color="#FFFFFF" alpha="0.1"/>
<pos anchor="c" x="50%" y="65%" width="box" height="box"/>
<box orientation="vertical" min-width="400" xpadding="10" ypadding="5" spacing="0">
<item type="label" id="timed-label">
<normal color="#ffffff" font="Sans 12"/>
<pos x="50%" anchor="n"/>
<!-- Stock label for: User %s will login in %d seconds -->
<stock type="timed-label"/>
</item>
</box>
</item>

<item type="rect">
<!-- just put our foot in the middle as a reference point for the rest -->
<pos anchor="center" x="50%" y="55%"/>
<fixed>

<item type="pixmap">
<normal file="shade-left.png" alpha="0.08"/>
<pos x="-300" y="-25" width="25%" height="51" anchor="ne"/>
</item>

<!-- Behind Foot -->
<item type="rect">
<normal color="#eeeeec" alpha="0.6"/>
<pos x="-300" y="-25" width="80" height="51" anchor="nw"/>
</item>

<!-- Behind GNOME Desktop -->
<item type="rect">
<normal color="#666664" alpha="0.3"/>
<pos x="-220" y="-25" width="180" height="51" anchor="nw"/>
</item>

<!-- Behind Input -->
<item type="rect">
<normal color="#eeeeec" alpha="0.6"/>
<pos x="-40" y="-25" width="320" height="51" anchor="nw"/>
</item>

<item type="pixmap">
<normal file="shade-right.png" alpha="0.08"/>
<pos x="270" y="-25" width="25%" height="51" anchor="nw"/>
</item>

<item type="pixmap">
<normal file="dotline.png" alpha="0.6"/>
<pos anchor="center" width="3200" height="1" x="0" y="-25"/>
</item>

<item type="pixmap">
<normal file="dotline.png" alpha="0.6"/>
<pos anchor="center" width="3200" height="1" x="0" y="25"/>
</item>

<item type="pixmap">
<normal file="small-n.png" alpha="1"/>
<pos anchor="center" x="-260" y="0"/>
</item>

<item type="pixmap">
<normal file="gnome-linux-desktop.png" alpha="1"/>
<pos anchor="center" x="-115" y="0"/>
</item>
<!-- inp -->
<item type="rect">
<pos anchor="center" x="-30" y="0" width="box" height="box"/>
<box orientation="horizontal" spacing="3">
<item type="rect">
<!-- web designer trick - a spacer cell! ;-) -->
<pos width="310" height="20" x="0" y="0"/>
</item>
<item type="label" id="pam-prompt">
<pos anchor="w" y="50%"/>
<normal color="#000000" font="Sans 10"/>
<stock type="username-label"/>
</item>
<item type="rect">
<pos anchor="w" height="20" width="140" y="50%" expand="false"/>
<fixed>
<item type="entry" id="user-pw-entry">
<normal color="#000000" font="Sans 9"/>
<pos anchor="nw" x="6" y="1" height="-1" width="-8"/>
</item>
<item type="svg">
<normal file="dashed-rect.svg"/>
<pos anchor="nw" x="1" y="0" width="140" height="21"/>
</item>
</fixed>
</item>
</box>
</item>


<!-- session/language/disconnect buttons -->
<item type="rect">
<!-- the parent is hidden, but it just puts us on the correct place
in relation to the loginbox - then we offset from it -->
<pos anchor="s" y="36" x="-46"/>
<box orientation="horizontal" xpadding="12" spacing="12" homogenous="false" >
<item type="label" id="language_button">
<normal color="#eeeeee" alpha="0.9" font="Sans 10"/>
<prelight color="#ffffff" alpha="1" font="Sans 10"/>
<active color="#990000" font="Sans 10"/>
<stock type="language"/>
</item>

<item type="svg">
<normal file="vline.svg"/>
<pos width="10" height="30"/>
</item>

<item type="label" id="session_button">
<normal color="#eeeeee" alpha="0.9" font="Sans 10"/>
<prelight color="#ffffff" alpha="1" font="Sans 10"/>
<active color="#990000" font="Sans 10"/>
<stock type="session"/>
</item>

<item type="svg">
<show modes="console" type="system"/>
<normal file="vline.svg"/>
<pos anchor="nw" width="10" height="30"/>
</item>

<item type="label" id="system_button" button="true">
<show modes="console" type="system"/>
<normal color="#eeeeee" alpha="0.9" font="Sans 10"/>
<prelight color="#ffffff" alpha="1" font="Sans 10"/>
<active color="#990000" font="Sans 10"/>
<stock type="system"/>
</item>

<!-- OR -->

<item type="svg">
<show modes="remote"/>
<normal file="vline.svg"/>
<pos anchor="nw" width="10" height="30"/>
</item>

<item type="label" id="disconnect_button">
<normal color="#eeeeee" alpha="0.9" font="Sans 10"/>
<prelight color="#ffffff" alpha="1" font="Sans 10"/>
<active color="#990000" font="Sans 10"/>
<stock type="disconnect"/>
<show modes="remote"/>
</item>

<item type="svg">
<show modes="flexi"/>
<normal file="vline.svg"/>
<pos anchor="nw" width="10" height="30"/>
</item>

<item type="label" id="disconnect_button">
<normal color="#eeeeee" alpha="0.9" font="Sans 10"/>
<prelight color="#ffffff" alpha="1" font="Sans 10"/>
<active color="#990000" font="Sans 10"/>
<stock type="quit"/>
<show modes="flexi"/>
</item>

</box>
</item>
</fixed>
</item>

<item type="rect" id="caps-lock-warning">
<normal color="#eeeeee" alpha="0.1"/>
<pos anchor="c" x="50%" y="30%" width="box" height="box"/>
<box orientation="vertical" min-width="400" xpadding="10" ypadding="5" spacing="0">
<item type="label">
<normal color="#eeeeee" font="Sans 14"/>
<pos x="50%" anchor="n"/>
<stock type="caps-lock-warning"/>
</item>
<item type="label">
<normal color="#eeeeee" font="Sans 10"/>
<pos x="50%" anchor="n"/>
<text>Passwords and usernames are case-sensitive</text>
</item>
</box>
</item>

<item type="rect" id="pam-error">
<pos anchor="c" x="50%" y="35%" width="box" height="box"/>
<box orientation="vertical" min-width="500" xpadding="10" ypadding="5" spacing="0">
<item type="label" id="pam-error">
<normal color="#eeeeee" font="Sans 12"/>
<pos x="50%" anchor="n"/>
<text>%s</text>
</item>
</box>
</item>

</greeter>

I have looked at this file again and again but can not find where I need to make the change to remove this. Does anyone know how I can edit this?

AJB2K3
February 10th, 2008, 10:17 AM
It seams like it could be part of the actual graphical files

kostkon
February 10th, 2008, 10:50 AM
The word Linux seems to be the hostname of the computer. Have you tested this GDM theme? Does it print Linux in the middle of the screen?

exploder
February 10th, 2008, 12:48 PM
Hi! Thanks for the responces.

It is not part of the graphic. This happens with every GDM theme I make using this as a templet.

The hostname of the computer is not what is displaying.

Yes, I have tested the GDM theme and am unable to figure out what makes the word Linux appear.

Half-Left
February 10th, 2008, 01:08 PM
Can you give more info on where and when the text "Linux" appears?

exploder
February 10th, 2008, 01:15 PM
The text appears when the GDM theme first comes up on the screen. The text goes away after I type in a user name and hit enter.

Half-Left
February 11th, 2008, 05:23 PM
The text appears when the GDM theme first comes up on the screen. The text goes away after I type in a user name and hit enter.

Only thing I can see is this,

<item type="rect" id="pam-error">
<pos anchor="c" x="50%" y="35%" width="box" height="box"/>
<box orientation="vertical" min-width="500" xpadding="10" ypadding="5" spacing="0">
<item type="label" id="pam-error">
<normal color="#eeeeee" font="Sans 12"/>
<pos x="50%" anchor="n"/>
<text>%s</text>
</item>
</box>
</item>

The host name it usually a command like that not text, obviously "linux" is not actual text in the gdm file.

Arthur Archnix
February 16th, 2008, 06:42 AM
If you do uname -s in a terminal you'll see that it prints out "Linux".

So you probably want to delete that %s, just leave it blank. Or you could type "Type user name here" if you wanted the box to show something by default at startup.