MetaTheme - wygl

Archiwalne, stare wpisy FAQ i HowTo Użytkowników
daris
Beginner
Posty: 304
Rejestracja: 30 marca 2007, 21:00

MetaTheme - wygląd gtk i qt w oparciu o .msstyle

Post autor: daris »

Kilka zrzutów ekranu zrobionych przeze mnie:

Obrazek Obrazek Obrazek

Więcej zrzutów ekranów.
  1. Instalacja
    1. Pobierz najnowszą wersję metatheme stąd
    2. Rozpakuj archiwum i w folderze rozpakowanego archiwum wykonaj:

      Kod: Zaznacz cały

      ./configure
      make
      make install
  2. Aktywowanie
    1. Zapisz wszystkie niezapisane dane, ponieważ aplikacje mogą się zawiesić!
    2. Uruchom

      Kod: Zaznacz cały

      metatheme-install
    3. Zrestartuj sesję (lub cały x-server - Ctrl+Alt+Backspace).
    4. Użyj aplikacji

      Kod: Zaznacz cały

      mt-config
      aby dostosować wygląd (z tego co zauważyłem to dla kde trzeba dodatkowo zmienić styl na MetaTheme w aplecie Styl w Centrum Sterowania).
  3. Instalowanie microsoftowskich styli (.msstyle)
    1. Skopiuj pliki .msstyle do folderu ~/.metatheme/msstyles/ (jeśli nie istnieje utwórz go).
    2. Uruchom program

      Kod: Zaznacz cały

      mt-config
      , wybierz MSSTYLE Loader jako styl i kliknij Configure. Następnie wybierz styl.
  4. Odinstalowywanie
    1. Wykonaj

      Kod: Zaznacz cały

      metatheme-install -u
    2. Uruchom

      Kod: Zaznacz cały

      make uninstall
      w katalogu ze źródłami.
  5. Dodatkowe style (.msstyle)
    1. http://metatheme.org/themes.php
    2. Oczywiście możesz także używać innych styli przeznaczonych dla Windowsa.
  6. Uwagi
    1. Przed zmianą stylu zapisz wszsystkie niezapisane dane! (to how-to częściowo pisałem 2 razy bo właśnie tak się bawiłem stylami).
    2. Zdecydowanie ten program lepiej sprawdza się na gnome niż na kde (na kde są problemy z wyświetlaniem tła zakładek).
    3. Mozilla/Thunderbird/Firefox nie są w pełni obsługiwane.
    4. Najlepiej zrestartować sesję po zmianie stylu.
    Najczęściej używanym stylem w Windows XP był u mnie ten (to ten na ostatnich dwóch obrazkach na początku tej wiadomości).
PS. KDE też może być ładne.
PS 2. Z tego co zauważyłem to gnome przestaje być takie ,,mułowate'' z msstylami.
Kaka'
Senior Member
Posty: 3018
Rejestracja: 30 lipca 2006, 13:17
Lokalizacja: Kartuzy

Post autor: Kaka' »

daris pisze:./configure
make
make install
Czy nie lepiej zrobić sobie paczkę deb z tego? Więcej korzyści będzie z tego płynąć :)
daris
Beginner
Posty: 304
Rejestracja: 30 marca 2007, 21:00

Post autor: daris »

Kompilacja nie zajęła mi więcej jak minutę, ale jak ktoś paczkę zrobi to się przyda :P (ja jeszcze o tworzeniu debów nie mam zielonego pojęcia :mrgreen: )
Kaka'
Senior Member
Posty: 3018
Rejestracja: 30 lipca 2006, 13:17
Lokalizacja: Kartuzy

Post autor: Kaka' »

daris pisze:ja jeszcze o tworzeniu debów nie mam zielonego pojęcia
Polecam zatem lekturę: http://www.us.debian.org/doc/manuals/ma ... l#contents
GIGABYTE
Beginner
Posty: 224
Rejestracja: 13 lipca 2007, 00:17
Lokalizacja: Toruñ

Post autor: GIGABYTE »

Zrobił już ktoś deba?? Ja mam problem z instalacją. Tutaj wyniki z konsoli:

Kod: Zaznacz cały

debian:/home/karol/Desktop/metatheme/metatheme-0.0.6# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for X... no
checking for ANSI C header files... (cached) yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for strdup... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for CAIRO_CFLAGS...
checking for CAIRO_LIBS...
checking for GTK2_CFLAGS...
checking for GTK2_LIBS...
checking for QT... no
checking for Java SDK... no
checking for GLIB_CFLAGS... -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
checking for GLIB_LIBS... -L/usr/local/lib -lglib-2.0

Configuration summary
=====================

Toolkit support:

  * GTK2:         no
  * QT:           no
  * Java:         no

Theme engines:

  * Redmond 2000: yes
  * Plastik:      yes
  * Highcolor:    yes
  * Industrial:   yes
  * Flat:         yes
  * MSSTYLE:      no, GTK2 is required

Cairo support:    no

configure: creating ./config.status
config.status: creating Makefile
config.status: creating metatheme-install
config.status: creating metatheme/Makefile
config.status: creating themes/Makefile
config.status: creating themes/redmond/Makefile
config.status: creating themes/plastik/Makefile
config.status: creating themes/highcolor/Makefile
config.status: creating themes/industrial/Makefile
config.status: creating themes/flat/Makefile
config.status: creating themes/msstyle/Makefile
config.status: creating toolkits/Makefile
config.status: creating toolkits/gtk2/Makefile
config.status: creating toolkits/qt/Makefile
config.status: creating toolkits/java/Makefile
config.status: creating toolkits/java/metatheme/Makefile
config.status: creating toolkits/java/mt-java
config.status: creating config/Makefile
config.status: creating colors/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
debian:/home/karol/Desktop/metatheme/metatheme-0.0.6# make
make  all-recursive
make[1]: Wejście do katalogu `/home/karol/Desktop/metatheme/metatheme-0.0.6'
Making all in metatheme
make[2]: Wejście do katalogu `/home/karol/Desktop/metatheme/metatheme-0.0.6/metatheme'
if gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT refresh.o -MD -MP -MF ".deps/refresh.Tpo" \
          -c -o refresh.o `test -f 'refresh.c' || echo './'`refresh.c; \
        then mv -f ".deps/refresh.Tpo" ".deps/refresh.Po"; \
        else rm -f ".deps/refresh.Tpo"; exit 1; \
        fi
refresh.c:24:19: error: X11/X.h: Nie ma takiego pliku ani katalogu
refresh.c:25:22: error: X11/Xlib.h: Nie ma takiego pliku ani katalogu
refresh.c:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
refresh.c:30: error: expected &#8216 ;) ’ before ‘w’
refresh.c:52: error: expected &#8216 ;) ’ before ‘w’
refresh.c:70: error: expected &#8216 ;) ’ before ‘w’
refresh.c: In function ‘send_reload_messages’:
refresh.c:90: error: ‘Window’ undeclared (first use in this function)
refresh.c:90: error: (Each undeclared identifier is reported only once
refresh.c:90: error: for each function it appears in.)
refresh.c:90: error: expected ‘;’ before ‘dw1’
refresh.c:91: error: ‘dpy’ undeclared (first use in this function)
refresh.c:92: error: ‘Atom’ undeclared (first use in this function)
refresh.c:92: error: expected ‘;’ before ‘kde_atom’
refresh.c:94: error: ‘kde_atom’ undeclared (first use in this function)
refresh.c:94: error: ‘False’ undeclared (first use in this function)
refresh.c:97: error: expected ‘;’ before ‘root’
refresh.c:99: error: ‘root’ undeclared (first use in this function)
refresh.c:99: error: ‘dw1’ undeclared (first use in this function)
refresh.c:99: error: ‘dw2’ undeclared (first use in this function)
refresh.c:99: error: ‘rootwins’ undeclared (first use in this function)
refresh.c: At top level:
refresh.c:117: error: expected &#8216 ;) ’ before ‘*’ token
make[2]: *** [refresh.o] Błąd 1
make[2]: Opuszczenie katalogu `/home/karol/Desktop/metatheme/metatheme-0.0.6/metatheme'
make[1]: *** [all-recursive] Błąd 1
make[1]: Opuszczenie katalogu `/home/karol/Desktop/metatheme/metatheme-0.0.6'
make: *** [all] Błąd 2
EDIT: Doinstalowałem qt3 i poszło bez błędów.
Czy potrzebne jest GTK2?

Lecz gdy wpisuję

Kod: Zaznacz cały

mt-config
to pokazuje
Konsola pisze:bash: mt-config: command not found
Awatar użytkownika
draco
Beginner
Posty: 258
Rejestracja: 03 grudnia 2006, 15:23
Lokalizacja: Inna rzeczywistość

Post autor: draco »

Problemy z czytaniem ze zrozumieniem?
GIGABYTE pisze:Czy potrzebne jest GTK2?

Kod: Zaznacz cały

  * MSSTYLE:      no, GTK2 is required
Zależy co chcesz osiągnąć...

Samo GTK2 nie jest potrzebne - potrzebne są jego nagłówki/develki.
GIGABYTE
Beginner
Posty: 224
Rejestracja: 13 lipca 2007, 00:17
Lokalizacja: Toruñ

Post autor: GIGABYTE »

Możesz napisać dokładnie co zainstlować??
daris
Beginner
Posty: 304
Rejestracja: 30 marca 2007, 21:00

Post autor: daris »

Deb'a zrobiłem ale nie da się go zainstalować bo:

Kod: Zaznacz cały

dpkg: w odniesieniu do metatheme_0.0.6-1_i386.deb zawierającego metatheme:
 libgtk2.0-0 w konflikcie z metatheme (<< 0.9.7-3)
  metatheme (wersja 0.0.6-1) jest przeznaczony do zainstalowania.
dpkg: błąd przetwarzania metatheme_0.0.6-1_i386.deb (--install):
 konflikt pakietów - nie będzie instalowany metatheme
Wystąpiły błędy podczas przetwarzania:
 metatheme_0.0.6-1_i386.deb


[ Dodano: 2007-08-15, 19:55 ]
Lecz gdy wpisuję

Kod: Zaznacz cały

mt-config	
to pokazuje
bash: mt-config: command not found
Zrobiłeś

Kod: Zaznacz cały

make install
? Masz ten plik w katalogu config (w źródłach)?
GIGABYTE
Beginner
Posty: 224
Rejestracja: 13 lipca 2007, 00:17
Lokalizacja: Toruñ

Post autor: GIGABYTE »

Make install zrobiłem i polecenie metatheme-install chodzi

¯adnych pomysłów??

Jak zaisntalować to GTK2?? Nie mogę sobie poradzić.

Przy kompilowaniu gtk+-2.0 chciał gliba, atk i pango. Więc skompilowałem gliba-2.10 a atk dalej chce gliba chociaż jest on już skompilowany. Bez sensu...

Ludzie trzymajcie mnie. Postanowiłem skompilować najnowsze wersje. To ściągnąłem:

gtk+-2.10.9
glib-2.12.9
atk-1.0.3
pango-1.17
cairo-1.4.10

GTK wymaga powyzszych paczek.

Glib i pango ładnie się skompilowały. atk zawzięte chce gliba a i jeszcze gtk chce cairo a cairo chce libpng chociaż ta jest zainstalowana z repo. I jak tu się nie denerwować. Mam dość. POMOCY!
Lorenzo
Beginner
Posty: 262
Rejestracja: 15 sierpnia 2006, 16:14
Lokalizacja: Kraków

Post autor: Lorenzo »

Wykonaj ldconfig.
Dodaj do PKG_CONFIG_PATH ścieżkę do katalogu, w którym masz glib.pc, cairo.pc, etc.

P.S. Jeżeli ktoś chce paczkę to mogę zrobić (ale na sidzie), tylko powiedzcie mi czy chcecie zależności czy nie ;-)
Zablokowany