You are not logged in.

#1 2009-02-22 10:07:39

blackhole
Member
From: Karlsruhe, Germany
Registered: 2008-12-14
Posts: 148
Website

Is there a gtk-qt-engine-kde4?

Hi guys,

I'm still struggling with the ugliness of GTK-apps under KDE 4.2. My Google research produced a lot of Ubuntu/Kubuntu results adressing this issue. Apparently in Ubuntu there's a package called "gtk-qt-engine-kde4" which is different from "gtk-qt-engine" and produces better results under KDE 4.2.

No I'm wondering whether there's something similar in Arch. So far I have the normal "extra/gtk-qt-engine" installed.

Cheers,
Blackhole


Coming closer and closer to the ultimate goal: replacing boring old Windows XP desktop with shiny new Arch KDE 4 desktop. ^^
Already registered? Your vote counts!

Offline

#2 2009-02-22 11:46:29

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: Is there a gtk-qt-engine-kde4?

Have you tried qtcurve-gtk2 qtcurve-kde4?

Offline

#3 2009-02-22 11:49:41

Dead Code
Member
Registered: 2009-01-18
Posts: 227

Re: Is there a gtk-qt-engine-kde4?

pacman -Sy qtcurve

will install all the  the qtcurve packages

after that, you can go to Appearance->GTK Styles and Fonts and select Qtcurve

Offline

#4 2009-02-22 14:51:08

blackhole
Member
From: Karlsruhe, Germany
Registered: 2008-12-14
Posts: 148
Website

Re: Is there a gtk-qt-engine-kde4?

Thanks guys. I knew about qt-curve. However I was still wondering whether there is a gtk-qt-engine-kde4.

Maybe I'm mistaken here, but I always assumed gtk-qt-engine was the name of the program that integrates GTK-apps into KDE. I mean after all you have to install this package in order to get the GTK-Settings tab in the KDE Appearance Settings. qt-curve however is just a theme I can use with gtk-qt-engine.

I've read a lot about different GTK-themes and how to make GTK-apps look nice within KDE. What I have not found is whether there's a gtk-qt-engine-kde4.


Coming closer and closer to the ultimate goal: replacing boring old Windows XP desktop with shiny new Arch KDE 4 desktop. ^^
Already registered? Your vote counts!

Offline

#5 2009-02-22 15:13:04

Dead Code
Member
Registered: 2009-01-18
Posts: 227

Re: Is there a gtk-qt-engine-kde4?

gtk-qt-engine has an style kde4-oxygen..  but you will get only one look with it

Offline

#6 2009-02-22 15:52:48

Slammer64
Member
From: Ozark Mountains of Missouri
Registered: 2007-07-28
Posts: 113

Re: Is there a gtk-qt-engine-kde4?

I use the gtk-kde4-oxygen-theme in AUR with gtk-qt-engine, works fine, looks fine.


Somewhere, just out of sight, the Penguins are gathering!

Offline

#7 2009-02-22 21:22:28

blackhole
Member
From: Karlsruhe, Germany
Registered: 2008-12-14
Posts: 148
Website

Re: Is there a gtk-qt-engine-kde4?

Yeah I'm using kde4-oxygen as well now. I'm still not satisfied with the fonts in GTK-apps, though. That's why I was wonderig whether this miraculous "gtk-qt-engine-kde4" would do some font anti-aliasing magic or something.

For some strange reason the fonts in my GTK-app are not as nice as the ones in KDE/Qt apps. The anti-aliasing doesn't seem to work very well. Unfortunaetly There aren't any anti-aliasing settings for GTK-apps in the system settings. sad

Does anyone know how to set anti-aliasing for GTK-apps?

BTW, I couldn't download qtcurve-gtk. There seems to be a problem:

schorsch@archie:~$ sudo pacman -S qtcurve-gtk2
resolving dependencies...                     
looking for inter-conflicts...                

Targets (1): qtcurve-gtk2-0.60.0-1  

Total Download Size:    0,09 MB
Total Installed Size:   0,29 MB

Proceed with installation? [Y/n] 
:: Retrieving packages from extra...
error: failed retrieving file 'qtcurve-gtk2-0.60.0-1-i686.pkg.tar.gz' from mir.archlinux.fr : Not Found
error: failed retrieving file 'qtcurve-gtk2-0.60.0-1-i686.pkg.tar.gz' from ftp.uni-kl.de : Not Found   
error: failed retrieving file 'qtcurve-gtk2-0.60.0-1-i686.pkg.tar.gz' from archlinux.mirrors.uk2.net : Not Found
error: failed retrieving file 'qtcurve-gtk2-0.60.0-1-i686.pkg.tar.gz' from archlinux.puzzle.ch : Not Found

Coming closer and closer to the ultimate goal: replacing boring old Windows XP desktop with shiny new Arch KDE 4 desktop. ^^
Already registered? Your vote counts!

Offline

#8 2009-02-22 22:24:26

HashBox
Member
Registered: 2009-01-22
Posts: 271

Re: Is there a gtk-qt-engine-kde4?

I can't help with your KDE/GTK problem since I don't use KDE, but as for your download problem there, you might want to try "sudo pacman -Sy qtcurve-gtk2" to update the repository before downloading, occasionally I'll find a package that's missing when really there's just a newer version available.

Offline

#9 2009-02-23 09:41:49

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: Is there a gtk-qt-engine-kde4?

You coud do without gtk-qt-engine. All it will do is create or manipulate the file ".gtkrc-2.0-kde" in your home dir. You could create this file yourself.

For example, if you use qtcurve, the file might look something like mine...

# To fix tool tip foreground color in gtk apps
style "tooltip"  
{  
fg[NORMAL] = "#000000"  
}  
widget "*tooltip*" style "tooltip" 

style "user-font"
{
    font_name="Bitstream Vera Sans 12"
}
widget_class "*" style "user-font"

gtk-theme-name="QtCurve"
gtk-icon-theme-name="hydroxygen"
gtk-font-name="Bitstream Vera Sans 12"
include "/home/lianli/.gtkrc.mime"
include "/usr/share/themes/QtCurve/gtk-2.0/gtkrc"

That's just an example. If you don't use qtcurve and just want your gtk apps to match your kde apps, you could just cange the two QtCurve lines to Qt..
gtk-theme-name="Qt"
include "/usr/share/themes/Qt/gtk-2.0/gtkrc"

you might also try running qtconfig to tweak your qt appearance settings.

Last edited by Leigh (2009-02-23 09:44:33)


-- archlinux 是一个极好的 linux

Offline

#10 2009-02-23 17:19:43

pano
Member
From: Stuttgart, Germany
Registered: 2008-09-08
Posts: 118

Re: Is there a gtk-qt-engine-kde4?

@ blackhole

YOu should try a pacman -Syy first, before installing qtcurve-gtk, because the package was updated some days ago

Offline

#11 2009-02-24 09:35:15

blackhole
Member
From: Karlsruhe, Germany
Registered: 2008-12-14
Posts: 148
Website

Re: Is there a gtk-qt-engine-kde4?

Thanks to you all. Yeah, I forgot the pacman -Syy. How stupid of me.

@Leigh: I've come across those gtkrc-files, however I haven't seen anti-aliasing settings in there yet. Does anybody know how to control anti-aliasing for gtk-apps?


Coming closer and closer to the ultimate goal: replacing boring old Windows XP desktop with shiny new Arch KDE 4 desktop. ^^
Already registered? Your vote counts!

Offline

#12 2009-02-24 22:48:16

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: Is there a gtk-qt-engine-kde4?

I'm not sure if this is the correct way, but when I set up fonts this is what I ended up doing, along with installing the lcd packages from aur/community which made a huge difference.

In my .bashrc
export GDK_USE_XFT=1


Then in my .Xdefaults
Xft.antialias:  1
Xft.hinting:            1
Xft.hintstyle: hintslight
!Xft.autohint:         1
xft.rgba:        rgb

Edit..
Also I have some antialias settings in my .font.conf file. It's kind of confusing to decifer so i'll just post the whole file. I would only use it as a reference. I have it set up with a lot of Chinese fonts.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="rgba" >
   <const>none</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintmedium</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
        <match target="font">
                <test qual="all" name="rgba"><const>unknown</const></test>
                <edit name="rgba" mode="assign"><const>rgb</const></edit>
        </match>
    <match target="font">
        <edit name="autohint" mode="assign"><bool>true</bool></edit>
    </match>
  <match target="font">
    <test qual="any" name="family" compare="eq">
      <string>Bitstream Vera Serif</string>
           <string>Microsoft YaHei</string>
           <string>AR PL New Sung</string>
           <string>AR PL New Sung ExtB</string>
           <string>AR PL New Sung Mono</string>
           <string>AR PL ShanHeiSun Uni</string>
           <string>SimSun</string>
           <string>MingLiu</string>
           <string>PMingLiu</string>
           <string>SimHei</string>
           <string>AR PL ZenKai Uni</string>
    </test>
    <test name="pixelsize" compare="less_eq">
      <double>14</double>
    </test>
    <edit name="antialias">
      <bool>false</bool>
    </edit>
    <edit name="hinting">
      <bool>true</bool>
    </edit>
  </match>
  <alias>
      <family>serif</family>
      <prefer>
         <family>Bitstream Vera Serif</family>
              <family>Microsoft YaHei</family>
              <family>AR PL New Sung</family>
              <family>Times New Roman</family>
              <family>AR PL New Sung ExtB</family>
              <family>AR PL ShanHeiSun Uni</family>
          <family>SimSun</family>
          <family>MingLiu</family>
          <family>PMingLiu</family>
          <family>SimHei</family>
          <family>AR PL ZenKai Uni</family>
      </prefer>
  </alias>
  <alias>
      <family>sans-serif</family>
      <prefer>
         <family>Bitstream Vera Sans</family>
              <family>Microsoft YaHei</family>
              <family>AR PL New Sung</family>
          <family>Arial</family>
          <family>Verdana</family>
          <family>Helvetica</family>
              <family>AR PL New Sung ExtB</family>
              <family>AR PL ShanHeiSun Uni</family>
          <family>SimSun</family>
          <family>MingLiu</family>
          <family>PMingLiu</family>
          <family>SimHei</family>
          <family>AR PL ZenKai Uni</family>
      </prefer>
  </alias>
  <alias>
      <family>monospace</family>
      <prefer>
         <family>DejaVu Sans Mono</family>
              <family>AR PL New Sung Mono</family>
              <family>Bitstream Vera Sans Mono</family>
              <family>Courier New</family>
              <family>Courier</family>
              <family>AR PL New Sung</family>
              <family>AR PL New Sung ExtB</family>
              <family>AR PL ShanHeiSun Uni</family>
          <family>SimSun</family>
          <family>MingLiu</family>
          <family>PMingLiu</family>
          <family>SimHei</family>
          <family>AR PL ZenKai Uni</family>
      </prefer>
  </alias>
</fontconfig>

Last edited by Leigh (2009-02-24 23:04:42)


-- archlinux 是一个极好的 linux

Offline

#13 2009-02-25 07:04:03

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: Is there a gtk-qt-engine-kde4?

Something else. I just noticed in my /.kde/autostart folder, fix-gtk-hinting.sh

#!/bin/bash
/usr/bin/xrdb -merge ~/.Xresources

The file was last modified in may of last year and I don't remember much about it, but I do remember copying everything in my .Xdefaults and putting it in .Xresources so the two are the same. Not sure it will help.


-- archlinux 是一个极好的 linux

Offline

Board footer

Powered by FluxBB