Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344234 - [CSS] Can not change View Title Fonts in preference
Summary: [CSS] Can not change View Title Fonts in preference
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: 4.4 M6   Edit
Assignee: Daniel Rolka CLA
QA Contact: Daniel Rolka CLA
URL:
Whiteboard:
Keywords:
: 358249 358532 416286 (view as bug list)
Depends on: 419016
Blocks:
  Show dependency tree
 
Reported: 2011-04-29 01:44 EDT by Kentaroh Noji CLA
Modified: 2014-01-29 03:43 EST (History)
15 users (show)

See Also:


Attachments
Screen capture (142.81 KB, image/png)
2011-04-29 01:48 EDT, Kentaroh Noji CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kentaroh Noji CLA 2011-04-29 01:44:56 EDT
Build Identifier: I20110427-0800

This problem happens in Eclipse v4.1, but not v3.7. 
I try to change View title fonts in preference, but fail to apply the changes. 
JDK : "JRE 1.6.0 IBM Windows AMD 64 build pwa6460sr9fp1-20110208_03
(SR9 FP1)"
OS: Windows 7 SP1 Japanese. The same problem happens in Windows XP, too. 

Reproducible: Always

Steps to Reproduce:
1.Window > Preferences > General > Appearance > Colors and Fonts 
2.Click "View and Editors Folders"
3.Change fonts for "Part title font", and push "Apply" button.
Comment 1 Kentaroh Noji CLA 2011-04-29 01:48:05 EDT
Created attachment 194328 [details]
Screen capture
Comment 2 Remy Suen CLA 2011-04-29 05:42:29 EDT
We should delete this extension contribution I suppose as this is now controlled by CSS.
Comment 3 Prakash Rangaraj CLA 2011-04-29 06:38:20 EDT
(In reply to comment #2)
> We should delete this extension contribution I suppose as this is now
> controlled by CSS.

   Thats exactly what I thought. We should not have the Color and Fonts preference page itself.
Comment 4 Mark Reid CLA 2011-09-15 16:49:14 EDT
You can modify the Title font by editing the corresponding CSS file.  In my case, it was the gtk one, but 

plugins/org.eclipse.platform_VERSION/css/e4_default_PLATFORM.css

Where "VERSION" is replaced with your eclipse version and "PLATFORM" is replaced with your OS platform.

In my case, the actual file (using 4.2M1 on Ubuntu) was:
plugins/org.eclipse.platform_4.1.0.v20110805-1200/css/e4_default_gtk.css

You then edit the CSS for ".MPartStack" to change the tab title font style.
Comment 5 Remy Suen CLA 2011-09-20 13:39:52 EDT
*** Bug 358249 has been marked as a duplicate of this bug. ***
Comment 6 Michael Woski CLA 2011-09-20 16:52:34 EDT
(In reply to comment #5)
> *** Bug 358249 has been marked as a duplicate of this bug. ***

and how exactly is this supposed to work in a multi-user environment? Take Linux, where the path where programs are normally located is read-only - for good reasons.

thx Michi
Comment 7 Remy Suen CLA 2011-09-22 06:26:50 EDT
*** Bug 358532 has been marked as a duplicate of this bug. ***
Comment 8 Remy Suen CLA 2011-09-22 11:17:12 EDT
(In reply to comment #6)
> and how exactly is this supposed to work in a multi-user environment?

Thank you for raising this topic to our attention, Michael. I have opened bug 358606 for this issue.
Comment 9 Kris De Volder CLA 2013-04-26 17:12:54 EDT
> We should delete this extension contribution I suppose as this is now
> controlled by CSS.

I'm sorry but editing the CSS in my humble opinion isn't a very user friendly way of changing colors and fonts. Maybe it would be better not to delete these
preference pages but actually make them work? 

I mean, what business is it of the user whether these settings get stored as CSS... or something else?

To make a point, if it weren't for this bug report, I wouldn't have even known that this stuff is in a CSS files burried inside a plugin in my installed Eclipse.

It seems just not right that I have dig out that CSS file and edit it directly.

I certainly agree it isn't logical that the font preferences page doesn't work, but deleting it doesn't really seem like a proper solution to that problem.
Comment 10 Paul Webster CLA 2013-04-26 19:01:54 EDT
While I'm not sure of the final disposition of the pref pages, we do plan to try and get them to work with the CSS (I can't find the bug at the moment) before just throwing them out.

The workaround in the meantime is http://wiki.eclipse.org/Eclipse4/CSS

PW
Comment 11 Dani Megert CLA 2013-04-29 03:35:26 EDT
Same for colors, see  bug 355946.
Comment 12 J.F.Lanting CLA 2013-04-29 04:26:47 EDT
I agree with Kris de Volder:

there's been 'times' that we had to edit any control file by hand, even without
a visual editor or such (early DEC software, UNIX-6 ...).
Then someone came along to tell us that we were idiots to work that way
and that this approach was never to make it to customer level.
So we started to write smart 'wizards' that wouldn't mess up those files
and even our customers now could 'configure'.
Later the control files went binary and the GUI approach was the 'only' way
to go (e.g. the Microsoft Registry).

If however, in 2013, someone had told me that in an expensive product like Visual Studio, you still had to edit some file to get the desired font or colour,
I wouldn't have believed him/her.
So, it IS true for a fine product like ECLIPSE ......

I do hope that people like Paul Webster have some influence to keep the project
back on the right track.
Or should we all go back to the 3 releases?
;JOOP!
Comment 13 Dani Megert CLA 2013-09-02 08:08:37 EDT
*** Bug 416286 has been marked as a duplicate of this bug. ***
Comment 14 Daniel Rolka CLA 2014-01-24 06:25:44 EST
Gerrit code review: https://git.eclipse.org/r/#/c/21030/

Daniel
Comment 15 Dani Megert CLA 2014-01-28 10:39:36 EST
(In reply to Daniel Rolka from comment #14)
> Gerrit code review: https://git.eclipse.org/r/#/c/21030/
> 
> Daniel

Thanks Daniel. Reviewed and submitted with http://git.eclipse.org/c/platform/eclipse.platform.git/commit/?id=042952eb8bb110aca719378b6551dd021c4069c5


Setting the 'View message font' still does not work. I've investigated this and it looks like this got broken back in 3.1, see bug 325235 for more details.
Comment 16 Dani Megert CLA 2014-01-29 03:43:01 EST
Verified in N20140128-2000.