Adjust the GTK3 tooltip color exclusively for Eclipse when it is operating on Ubuntu

I am using Eclipse Mars on Ubuntu 15.04 and looking to customize the GTK3 tooltip fg/bg color specifically for Eclipse without impacting other applications. I have come across instructions for changing this color system-wide, but I need guidance on how to do it just for Eclipse as GTK3 and CSS are not areas of expertise for me.

Answer №1

I discovered a unique solution to adjusting the Eclipse tooltip color without reverting to GTK2 or impacting any other applications.

This innovative fix is contained within a script, which can be found and accessed at the following link:

https://github.com/KiranMohan/eclipse-gtk3-ubuntu

By utilizing this script, a copy of the Ambiance theme is manipulated to change the tooltip color specifically for Eclipse, along with creating a new launcher for the IDE using this customized Theme.

Answer №2

Customizing GTK Settings Specifically for Eclipse:

To configure the GTK settings exclusively for Eclipse, you can create a gtkrc file within your home directory (e.g., ~/.gtkrc-eclipse) with the following content:

gtk-color-scheme = "selected_bg_color:#0AFC02\nselected_fg_color:#FFFFFF\norginal_selected_bg_color:#f07746\ntooltip_bg_color:#f5f5c5\ntooltip_fg_color:#000000"

Run Eclipse from the command line using:

env GTK2_RC_FILES=/usr/share/themes/<Your current theme>/gtk-2.0/gtkrc:/home/<user name>/.gtkrc-eclipse '

env GTK2_RC_FILES=/usr/share/themes/Ambiance/gtk-2.0/gtkrc:/home/chandrayya/.gtkrc-eclipse '/opt/eclipse-3.3/eclipse'

You can determine your current GNOME theme by executing:

gsettings get org.gnome.desktop.interface gtk-theme

Select your preferred color codes for foreground and background.

For additional information, check out this post on Changing Eclipse sidebar vertical scope highlighting.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Selenium 3.2.0 causing FireFox 52 to crash when using driver.quit() on Windows 7 Home Premium with GeckoDriver 0.14.0

My Windows 7 operating system and Firefox browser are both set to German language. I have all the available updates installed for Windows 7, as well as for both 32-bit and 64-bit GeckoDriver (I use a 64-bit Windows 7 and a 32-bit Firefox). Is this issue sp ...

Produce Struts 2 JSON Output while Executing Action

Struggling to implement caching of JSON responses in Struts 2 Action calls. Want to generate and cache the JSON response within the code before making the call. Considered including this snippet within an action's execute() method: String json = this ...

What is preventing the input box from shrinking further?

I created a search box using CSS grid that is supposed to shrink when the page is resized. However, it doesn't seem to shrink as much as I expected it to. Here is how it appears when fully extended: https://i.stack.imgur.com/tPuCg.png And here is how ...

Leverage the power of JSON Path to extract targeted fields from both parent and child objects within JSON data

Suppose we have a JSON object similar to the following: "book": [ { "category": "fiction", "author": "Jane Doe", "book_id": "123456", "title": "Mystery of the Missing Manuscript", ...

The WebElement can be identified using cssSelector or xpath in the web browser. It may not be null, but it is also not present, clickable, or enabled

Is this a Selenium issue or an Angular issue? I'm not sure..I have a button element with the following HTML code. This is on an angular website, by the way. <div class="col-xs-12 col-sm-3 col-sm-push-6 col-lg-3" css="1"> <button class="btn b ...

When bootstrap is imported, SVG is displayed with a square background

The combination of reactJS and bootstrap has caused an unexpected issue for me. After importing bootstrap, strange squares have started to appear behind my SVG images... https://i.sstatic.net/4vmP8.png Is anyone familiar with what is causing this and ho ...

Ensure that the CSS element pseudo-class does not override the styling of its child

Looking to style an anchor element that contains other HTML elements. Here is the basic code structure: HTML: <div class="container" id="sub-menu"> <div class="row" data-bind="foreach: subMenu"> ...

Shades of Grey in Visual Studio Code

Whenever I use VSC, I notice these odd grey boxes that appear in my editor. They seem to be dynamic and really bother me. Interestingly, switching to a light theme makes them disappear. However, I prefer using a dark theme and haven't been able to fin ...

Creating a War card game question generator with Java 7, utilizing classes and objects

Today, I am wondering how to assign values to my state variables and methods in order to compare them and determine the winner. I also need guidance on how to direct the values to "Jack" and "Jill" (player p1 and p2). Should I utilize if-else statements? ...

Why isn't the image showing up as a list style?

I can't seem to get the image to show up on my page. Can anyone help me figure out what's wrong? ul li { background-image: url(logo.png); background-repeat: no-repeat; padding-left: 0px; } This is what I'm currently seeing: This is what ...

Tips for creating a clickable ::before image

I'm trying to create a hover effect where an image appears and is clickable when hovering over an element, similar to what is seen on many websites. For example, I want to display a bin icon when hovering over an element by using the ::before pseudo-e ...

Removing the restriction on maximum width to 100% and allowing for automatic height adjustment

Within my project, I have implemented a CSS technique where all images within a container are set with the attributes max-width: 100%; and height: auto;. This is done to ensure that images scale down appropriately when the viewport and container size decre ...

Center the image within the div by setting its position to absolute

<div class='img-box'> <img /> //position absolute <img /> //position absolute <img /> //position absolute <img /> //position absolute I am struggling to center the images within this div because of their absolute p ...

Cordova does not support the transform property

In the process of creating an Apache Cordova app using the Ionic framework and working with Phonegap Build, I encountered a challenge. The main page of my app features rows of icons that appear like this: However, there is a problem on Android 4.4.x and o ...

Which files should be included to define the variable $? in jQuery/JavaScript?

I am looking to create a sliding Div over another div in a simple way. The example provided in this Fiddle is exactly what I have in mind, but as someone new to coding, I encountered the warning Uncaught ReferenceError: $ is not defined after transferring ...

When the cursor hovers, a drop-down menu appears simultaneously

Currently utilizing the Bigcommerce stencil theme, I have encountered an issue where both dropdown menus appear when I hover over a link. My goal is to have only one dropdown menu pop up when hovering over a specific link. https://i.sstatic.net/paVoY.png ...

Maintain consistent width of a page across different mobile devices

Currently, the content on my page does not have any viewport settings. It is simply using a 25% left and right margin for the entire content area. The issue arises when accessing the page from a mobile device, as the width adjusts to match the screen size ...

Center an image both vertically and horizontally within an Owl Carousel arrow slider

I have set up an owl carousel on my page with a customized arrow positioned next to the slider. Currently, it looks like this: https://i.stack.imgur.com/gCfM0.png My goal is to vertically align the arrows and make sure the left arrow is aligned to the le ...

Implement an innovative solution to automatically close the navbar component in tailwindcss on

I've been attempting to create a unique tailwind navbar component for React, but I've encountered issues when trying to make it close on scroll for mobile view. I found the initial code on this website. After that, I tried implementing the code ...

An issue occurred when attempting to convert a string to a date using the SimpleDateFormatter during certain hours

Here is a code snippet: String dateString ="Wed, 18 Dec 2013 17:40:55 EST"; DateFormat formatter = new SimpleDateFormat("E,dd MMM yyyy HH:mm:ss Z"); Date date=null; Timestamp timeStamp=null; try { date = (Date) ...