LinuxForum.Fans
Тема

Как сделать Ubuntu очень похожей на ХР

Автор: husein167 25 сообщений 9297 просмотров
#39681

ожидайте минут 15... smile

#39682

Совсем забыл... В письме архив с "примером".

#39687

вот возьмем, к примеру, тему "Happy Gnome"
выглядит она так:


тема состоит из:
1. background.svg
2. gnome-logo.svg
3. gdmgreetertheme.desktop
4. happygnome.xml

все изменения производятся именно в последнем, четвертом файле.
выглядит он вот так:

text

<greeter>
−
<item type="svg" background="true">
<normal file="background.svg"/>
<pos x="0" y="0" width="100%" height="-75"/>
</item>
−
<item type="rect">
<normal color="#000000"/>
<pos x="0" y="-76" width="100%" height="76"/>
−
<fixed>
−
<item type="rect" background="true">
<normal color="#ffffff"/>
<pos x="0" y="5" width="100%" height="100%"/>
−
<box orientation="horizontal" spacing="10" xpadding="10" ypadding="0">
−
<item type="button" id="options_button">
<pos y="50%" anchor="w" width="100" height="40"/>
<stock type="options"/>
</item>
−
<item type="list" id="session" combo="true">
<pos y="50%" anchor="w" height="40" width="200"/>
</item>
−
<item type="list" id="language" combo="true">
<pos y="50%" anchor="w" height="40" width="250"/>
</item>
</box>
</item>
</fixed>
</item>
−
<item type="svg" background="true">
<normal file="gnome-logo.svg"/>
<pos x="-12" y="-12" width="30" height="47" anchor="se"/>
</item>
−
<item type="label" id="clock">
<normal color="#000000" font="Sans 12"/>
<pos x="-80" y="-37" anchor="e"/>
<text>%c</text>
</item>
−
<item type="rect" id="caps-lock-warning">
<normal color="#FFFFFF" alpha="0.5"/>
<pos anchor="c" x="50%" y="75%" width="box" height="box"/>
−
<box orientation="vertical" min-width="400" xpadding="10" ypadding="5" spacing="0">
−
<item type="label">
<normal color="#000000" font="Sans 12"/>
<pos x="50%" anchor="n"/>
<!-- Stock label for: You've got capslock on! -->
<stock type="caps-lock-warning"/>
</item>
</box>
</item>
−
<item type="rect">
<show type="timed"/>
<normal color="#FFFFFF" alpha="0.5"/>
<pos anchor="c" x="50%" y="25%" width="box" height="box"/>
−
<box orientation="vertical" min-width="400" xpadding="10" ypadding="5" spacing="0">
−
<item type="label" id="timed-label">
<normal color="#000000" font="Sans 12"/>
<pos x="50%" anchor="n"/>
<!-- Stock label for: User %u will login in %t -->
<stock type="timed-label"/>
</item>
</box>
</item>
−
<item type="rect">
<normal color="#FFFFFF" alpha="0.5"/>
<pos anchor="c" x="50%" y="50%" width="box" height="box"/>
−
<box orientation="vertical" min-width="340" xpadding="30" ypadding="30" spacing="10">
−
<item type="label">
<pos anchor="n" x="50%"/>
<normal color="#000000" font="Sans 14"/>
<!-- Stock label for: Welcome to %h -->
<stock type="welcome-label"/>
</item>
−
<item type="label" id="pam-prompt">
<pos anchor="nw" x="10%"/>
<normal color="#000000" font="Sans 12"/>
<!-- Stock label for: Username: -->
<stock type="username-label"/>
</item>
−
<item type="rect">
<normal color="#000000"/>
<pos anchor="n" x="50%" height="24" width="80%"/>
−
<fixed>
−
<item type="entry" id="user-pw-entry">
<normal color="#000000" font="Sans 12"/>
<pos anchor="nw" x="1" y="1" height="-2" width="-2"/>
</item>
</fixed>
</item>
−
<item type="button" id="ok_button">
<pos anchor="n" x="50%" height="32" width="50%"/>
<stock type="ok"/>
</item>
−
<item type="button" id="cancel_button">
<pos anchor="n" x="50%" height="32" width="50%"/>
<stock type="startagain"/>
</item>
−
<item type="label" id="pam-message">
<pos anchor="n" x="50%"/>
<normal color="#000000" font="Sans 12"/>
<text/>
</item>
</box>
−
<fixed>
−
<item type="label" id="pam-error">
<pos anchor="n" x="50%" y="110%"/>
<normal color="#000000" font="Sans 12"/>
<text/>
</item>
</fixed>
</item>
</greeter>

вот участок кода, отвечающий за поле ввода логина/пароля:

text

<item type="entry" id="user-pw-entry">
<normal color="#000000" font="Sans 12"/>
<pos anchor="nw" x="1" y="1" height="-2" width="-2"/>

и если хочешь его изменить, открываешь GEdit и правишь руками.
только надо немножко HTML знать... :rolleyes:

aidan_megabyte написал:
Совсем забыл... В письме архив с "примером".

Ха! так твоя тема - это сплошные *.png smile
открываешь GIMP и рисуешь себе другие... :P

#39688

Termo, с HTML и PHP я знаком (но не профессионально). Спасибо большое, буду ковыряться. :)

#39691

вот место, где надпись Gnome Desktop

text

<item type="pixmap">
<normal file="gnome-linux-desktop.png" alpha="1"/>
<pos anchor="center" x="-115" y="0"/>
</item>
Войдите или зарегистрируйтесь, чтобы ответить.