Issue 81355 - API to get the system's colors
Summary: API to get the system's colors
Status: CLOSED DUPLICATE of issue 112684
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: carsten.driesner
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-07 11:09 UTC by Ariel Constenla-Haile
Modified: 2013-02-24 21:08 UTC (History)
3 users (show)

See Also:
Issue Type: FEATURE
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ariel Constenla-Haile 2007-09-07 11:09:29 UTC
It will be useful, when performing custom painting, to have an API just like
java.awt.SystemColor
<http://java.sun.com/javase/6/docs/api/java/awt/SystemColor.html> to get the
colors the operative system (and OOo) is actually using.

Maybe it won't be too much work to implement it, as OOo internally use some code
that works just like java.awt.SystemColor fields, so a
com.sun.star.awt.SystemColor will be easy to get from:

GetSettings().GetStyleSettings().GetWindowColor()
GetSettings().GetStyleSettings().GetHighlightColor()
GetSettings().GetStyleSettings().GetHighlightTextColor()
GetSettings().GetStyleSettings().GetFaceColor()
GetSettings().GetStyleSettings().GetLightColor(
GetSettings().GetStyleSettings().GetShadowColor()
Comment 1 jsc 2007-09-07 11:58:08 UTC
first of all that is no P1 issue

i agree that color management/handling in OO.org should be improved. But that is
a general enhancement. If you want to use this via API, you can of course do it
in your own code. Or you can create your own API to wrap this functionality.

I will forward this issue to somebody from the user experience team.

jsc -> cj: i know that you have some graphic background and maybe you have an
opinion to this enhancement. Feel free to forward it to the right developer.
Comment 2 carsten.driesner 2007-09-07 12:18:30 UTC
cd: Grab this feature request. It's also an internal requirement for an improved
toolkit API.
Comment 3 carsten.driesner 2007-09-07 12:18:53 UTC
cd: Accepted.
Comment 4 Martin Hollmichel 2007-11-09 17:27:47 UTC
set target from 2.x to 3.x according to
http://wiki.services.openoffice.org/wiki/Target_3x
Comment 5 Ariel Constenla-Haile 2012-12-25 14:04:26 UTC

*** This issue has been marked as a duplicate of issue 112684 ***