You are not logged in.

#1 2012-06-24 07:27:54

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Awesome WM Applications Use Wrong Theme/Fonts

Hello,

The theme/fonts in GTK applications are different than what I want my system to use. Theme in all applications are right except Spotify. Spotify is using some weird theme. Fonts in all applications are messed up. I am using infinality for fonts. I have made no changes to infinality config. I am running Awesome WM and ttf-google-webfonts.

.gtkrc.mine

##### GTK THEME
gtk-theme-name = "Zukitwo"

##### ICON THEME
gtk-icon-theme-name = "Faenza-Darker"

##### FONTS
style "schrift"
{
font_name = "DejaVu Sans 10"
}
widget_class "*" style "schrift"
gtk-font-name = "Droid Sans 10"

##### TOOLBARS
gtk-toolbar-style   = GTK_TOOLBAR_ICONS              #Only icons
gtk-toolbar-style   = GTK_TOOLBAR_TEXT	             #Only text
gtk-toolbar-style   = GTK_TOOLBAR_BOTH	             #Both icons and text
gtk-toolbar-style   = GTK_TOOLBAR_BOTH_HORIZ	     #Icons and text next to the icons

.gtkrc-2.0 and .gtkrc-1.2-gnome2

include '/home/donnie/.gtkrc.mine'

.config/gtk3/settings.ini

[Settings] 
gtk-theme-name = Zukitwo
gtk-icon-theme-name = Faenza-Darker

Spotify uses some weird black theme.
fiPnms.jpg
NDElqs.jpg

Nixnote has different fonts.
P4N84s.jpg

Google-Chrome address bar and bookmark bar is using correct font but not the browser itself.
6leKss.jpg

Thanks.

Last edited by donniezazen (2012-06-24 16:52:47)

Offline

#2 2012-06-24 08:24:45

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: Awesome WM Applications Use Wrong Theme/Fonts

why don't give a try to lxappearance ?


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2012-06-24 09:41:03

theGunslinger
Member
Registered: 2011-05-20
Posts: 300

Re: Awesome WM Applications Use Wrong Theme/Fonts

Are you sure spotify is a gtk app?

Offline

#4 2012-06-24 09:46:15

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: Awesome WM Applications Use Wrong Theme/Fonts

spotify is QT, so you can change qt theme under qtconfig

i noticed you to try lxappearance because you say: "The theme/fonts in GTK applications are different than what I want my system to use."

so GTK apps don't work are should


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#5 2012-06-24 10:00:39

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: Awesome WM Applications Use Wrong Theme/Fonts

All those apps on screenshots except Chrome are qt.

To make them look like gtk applications add following to .xinitrc or your startup script

export GTK2_RC_FILES="$HOME/.gtkrc-2.0"

Then run "qtconfig" and select GTK+ for gui style and choose fonts.
Use lxappearance for gtk settings - you might have syntax errors.
Web page fonts and rendering in Chrome have nothing to do with gtk - play around with Infinality.
Defaults are expected to look shitty.

Offline

#6 2012-06-24 16:19:22

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Awesome WM Applications Use Wrong Theme/Fonts

Chromium is also not a GTK app, but uses its own hybrid toolkit and simply mimics the desktop theme.  As for the font in the browser window, you likely need to change that in Chromium itself.

Offline

#7 2012-06-24 17:01:30

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: Awesome WM Applications Use Wrong Theme/Fonts

Sorry for calling those apps GTK apps. Previously, all I had to do was to install lxappearance and infinality and everything was taken care of automatically, no settings what so ever.

I removed all those files and installed lxappearance. I see no change. If I make changes in fonts section of lxappearance, it quickly goes back to default.

@saran I don't use xinitrc as i use lightdm. I use run_once script from Awesome Wiki and if I use export gtk rc files command, it resets my whole rc.lua, reverting awesome to go to default settings.

QGtkStyle was unable to detect the current GTK+ t
-- {{{ Run program once
local function processwalker()
   local function yieldprocess()
      for dir in lfs.dir("/proc") do
        -- All directories in /proc containing a number, represent a process
        if tonumber(dir) ~= nil then
          local f, err = io.open("/proc/"..dir.."/cmdline")
          if f then
            local cmdline = f:read("*all")
            f:close()
            if cmdline ~= "" then
              coroutine.yield(cmdline)
            end
          end
        end
      end
    end
    return coroutine.wrap(yieldprocess)
end

local function run_once(process, cmd)
   assert(type(process) == "string")
   local regex_killer = {
      ["+"]  = "%+", ["-"] = "%-",
      ["*"]  = "%*", ["?"]  = "%?" }

   for p in processwalker() do
      if p:find(process:gsub("[-+?*]", regex_killer)) then
	 return
      end
   end
   return awful.util.spawn(cmd or process)
end
-- }}}

-- Usage Example
-- run_once("firefox")
-- run_once("dropboxd")
-- Use the second argument, if the programm you wanna start, 
-- differs from the what you want to search.
-- run_once("redshift", "nice -n19 redshift -l 51:14 -t 5700:4500")
run_once("xfce4-power-manager")
run_once("parcellite")
run_once("/opt/dropbox/dropboxd")
run_once("nm-applet")
run_once("volumeicon")
run_once("[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources")
--run_once("export GTK2_RC_FILES="$HOME/.gtkrc-2.0"")

Last edited by donniezazen (2012-06-24 17:01:57)

Offline

#8 2012-06-30 16:39:10

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: Awesome WM Applications Use Wrong Theme/Fonts

I made changes to qtconfig. It seems to have fixed fonts in VLC and Nixnote. VLC is still completely black. Changing theme in qtconfig or VLC to GTK+ does nothing but changing font to desired fix the fonts. Google-chrome is still using crappy fonts. Also I am not sure if smooth infinality rendering is applied throughout system.

Offline

Board footer

Powered by FluxBB