Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8729815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:53:55+00:00 2026-06-13T08:53:55+00:00

In gtk2 ( .rc) and GTk3 ( .css) how do you theme the default

  • 0

In gtk2 (.rc) and GTk3 (.css) how do you theme the default button in a dialog ?

(The one that will be activated when hitting enter)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:53:56+00:00Added an answer on June 13, 2026 at 8:53 am

    In Lubuntu 12.10, the default theme (/usr/share/themes/Lubuntu-default) has a file in the gtk-2.0 folder called button.rc. There are five “states” listed: normal, prelight, insensitive, active, and focus. It is my impression (from a bit of fiddling), that the “focus” state represents the one you are interested in. In other words, if a window with a few buttons is present, it is the button in the focus state that will be “pressed” or “clicked” by hitting enter.

    In Lubuntu 12.10, the screen that appears when you click “Logout” from the main menu (or run lubuntu-logout from a terminal) illustrates this well. Of the seven “buttons” that appear, the topmost one, Shutdown, is shaded slightly differently (or has a focus ring) whereas the other six are similar to each other except for the text. Hitting “enter” without doing anything else is equivalent to clicking the “Shutdown” button.
    I too am trying to figure out how to make the button in focus, if we call it that, a bit more contrasty.

    For the gtk2 side of things, if you’re happy with making the focus ring more obvious (but a bit more ugly), editing the theme’s gtkrc may be one way. Look for a section captioned style “default” and then for a line that has something like

    GtkWidget ::focus-line-width = 1

    Changing 1 to 2 or 3 will make the focus ring more obvious.

    (I haven’t got round to looking at gtk3 apps.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I create a custom dialog in GTK ( both, GTK2 or GTK3 )
I have a Perl program that has a GTK2 GUI (via the Gtk2 package).
I'm writing an application using Perl and Gtk2-Perl that keeps track of elapsed time.
I have an application that is attempting to do the following: Create a GTK2
I have a desktop application written in Ruby that is using GTK2. It's just
I've been trying to get an Gtk2::Image object in this Perl Gtk2 application to
In GTK2, a StatusBar was just a simple container like an HBox. Glade 3
where can i download the gnope installer to have the php-gtk2 in my machine
I am trying to make a static binary on Subsurface on MacOSX, so that
it seems that Ruby GTK apps are unable to run in nongraphical environment.. while

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.