Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: LibreOffice looks ugly in SUSE KDE

  1. #1
    Join Date
    Sep 2012
    Location
    New Panvel, India.
    Posts
    98

    Default LibreOffice looks ugly in SUSE KDE

    I am using openSUSE 12.2 x86_64 KDE.

    This is what dropdown menus in my regular KDE apps look like (using Kate for an example):




    And this is what dropdown menus in LibreOffice look like:



    These are not just ugly but harder to work with. I also installed libreoffice-kde4 package from software.opensuse.org, but that doesn't seem to have changed anything. What other packaged do I need to install in order to get standard KDE 4 look and feel in LibreOffice?

  2. #2

    Default Re: LibreOffice looks ugly in SUSE KDE

    If everything looks ugly under KDE (which I tend to agree) - why don't you use Gnome?
    OK. Forget it! I assume you already defined a gtk2 theme, as I explained in your other thread (http://forums.opensuse.org/english/g...ml#post2488229). You can enforce GTK interface and theme for libreOffice apps under KDE by exporting the variable OOO_FORCE_DESKTOP to gnome in your environment. There are many ways to achieve that. I would just place the following script in your ~/.kde4/env (create this directory if it doesn't exist):

    Code:
    #!/bin/bash
    
    # Make sure our customised gtkrc file is loaded.
    export GTK2_RC_FILES=$HOME/.gtkrc-2.0-kde4
    export OOO_FORCE_DESKTOP=gnome
    Give the file a name which makes sense with the extension .sh and make it executable.

    I just added the second export line in this example to gtk-qt-engine.rc.sh - which might already exist from somewhere (have been created by KDE).

  3. #3
    Join Date
    Sep 2012
    Location
    New Panvel, India.
    Posts
    98

    Default Re: LibreOffice looks ugly in SUSE KDE

    Quote Originally Posted by please_try_again View Post
    If everything looks ugly under KDE (which I tend to agree) - why don't you use Gnome?

    Haha, I won't be taking that bait. ;-)


    Quote Originally Posted by please_try_again View Post
    OK. Forget it! I assume you already defined a gtk2 theme, as I explained in your other thread (http://forums.opensuse.org/english/g...ml#post2488229). You can enforce GTK interface and theme for libreOffice apps under KDE by exporting the variable OOO_FORCE_DESKTOP to gnome in your environment. There are many ways to achieve that. I would just place the following script in your ~/.kde4/env (create this directory if it doesn't exist):


    Code:
    #!/bin/bash
    
    
    # Make sure our customised gtkrc file is loaded.
    export GTK2_RC_FILES=$HOME/.gtkrc-2.0-kde4
    export OOO_FORCE_DESKTOP=gnome

    Give the file a name which makes sense with the extension .sh and make it executable.


    I just added the second export line in this example to gtk-qt-engine.rc.sh - which might already exist from somewhere (have been created by KDE).

    I did that. The appearances of my LibreOffice have changed but I am not sure which one I dislike more, the one now or the one before.



  4. #4

    Default Re: LibreOffice looks ugly in SUSE KDE



    There are thousands of gtk2 themes available. Just install the one you like! Again, bad written themes might cause problems with Eclipse. Actually, both Eclipse and LibreOffice have a pretty poorly written GTK interface (only very few GTK classes are supported. It means that theme authors can not customize a lot of things).

  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,059
    Blog Entries
    14

    Default Re: LibreOffice looks ugly in SUSE KDE

    In fact it's quite simple: LibreOffice is not a Qt application. If you want a fully integrated, completely KDE experience, install and try the Calligra suite (formerly known as koffice). Different, compared to LO, but IMHO very nice. IIRC it's in the KDE:/Extra repo
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  6. #6

    Default Re: LibreOffice looks ugly in SUSE KDE

    You don't need to install an extra repo for calligra.

    Code:
    # zypper info calligra
    Loading repository data...
    Reading installed packages...
    
    
    Information for package calligra:
    
    Repository: openSUSE-12.2-Update
    Name: calligra
    Version: 2.4.3-2.4.1
    Arch: x86_64
    Vendor: openSUSE
    Installed: Yes
    Status: up-to-date
    Installed Size: 22.0 MiB
    Summary: Libraries and Base Files for the Calligra Suite
    Description: 
    The Calligra Suite is a set of applications that allows you to easily complete
    your work. There are office applications, as well as Graphic applications.
    There is also a comprehensive set of plug-ins. The Calligra Suite is unique
    because not only does it consist of the normal word processor (Words) and
    spreadsheet (Sheets) applications, but it also brings you Graphic applications
    as well.
    
    The Calligra Suite consists of 8 applications, the office applications are
    Words, Sheets, Stage, Kexi, Flow, and Plan, and the graphic applications are
    Krita and Karbon. Each application is unique and aimed towards normal personal
    and professional uses.
    
    This package contains the base files and libraries for the Suite.

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,059
    Blog Entries
    14

    Default Re: LibreOffice looks ugly in SUSE KDE

    str_replace("IIRC it's", "please_try_again is right, it's not", "
    Quote Originally Posted by Knurpht View Post
    IIRC it's in the KDE:/Extra repo
    ");
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  8. #8

    Default Re: LibreOffice looks ugly in SUSE KDE

    Code:
    echo "IIRC it's in the KDE:/Extra repo" | sed "s|IIRC it's|please_try_again is right, it's not|"

  9. #9
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,059
    Blog Entries
    14

    Default Re: LibreOffice looks ugly in SUSE KDE

    Quote Originally Posted by please_try_again View Post
    Code:
    echo "IIRC it's in the KDE:/Extra repo" | sed "s|IIRC it's|please_try_again is right, it's not|"
    And now serious: need to replace a series of strings in headers in php files all in one go, and was looking at sed (finally), thanks for the nice example. Gets me started.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  10. #10
    Join Date
    Sep 2012
    Location
    New Panvel, India.
    Posts
    98

    Default Re: LibreOffice looks ugly in SUSE KDE

    Quote Originally Posted by please_try_again View Post


    There are thousands of gtk2 themes available. Just install the one you like! Again, bad written themes might cause problems with Eclipse. Actually, both Eclipse and LibreOffice have a pretty poorly written GTK interface (only very few GTK classes are supported. It means that theme authors can not customize a lot of things).
    I don't understand if there is something wrong with every gtk theme I download. I tried many but the appearance isn't changing. My files:

    Code:
    rahul@acb70333:~> cat .gtkrc-2.0
    gtk-font-name="Aller 9"
    include "/home/rahul/gtk-themes/aero/aero-clone/gtk-2.0/gtkrc"
    
    
    rahul@acb70333:~> cat .gtkrc-2.0-kde4
    # This file was written by KDE
    # You can edit it in the KDE control center, under "GTK Styles and Fonts"
    
    
    include "/home/rahul/gtk-themes/aero/aero-clone/gtk-2.0/gtkrc"
    # include "/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc"
    include "/etc/gtk-2.0/gtkrc"
    
    
    style "user-font"
    {
            font_name="Aller"
    }
    widget_class "*" style "user-font"
    
    
    # gtk-theme-name="oxygen-gtk"
    gtk-theme-name="aero"
    gtk-font-name="Aller 9"

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •