On Wed, 24 Jun 2015, Antonis Tsolomitis wrote:

> But of course other programs do not blend nicely with the desktop as far 
> as the looks are concerned.
> You can see here:
> http://myria.math.aegean.gr/~atsol/tmp/test-gtk.jpg 
> <http://myria.math.aegean.gr/%7Eatsol/tmp/test-gtk.jpg>
> 
> that it is possible to integrate at least colorwise all gtk apps that 
> are important for a modern desktop.
> Although the desktop is in Greek, you can see Gimp, LibreOffice, 
> MozillaFirefox and Thunderbird
> (I even open a menu on thunderbird to show the color change of the item 
> below the mouse cursor)
> blending nicely with the Golden color theme of CDE which I currently use.

CDE publishes its color scheme to the default Xt resources - *any*
application that can read it (using libXt or not) can use those colors
and fonts and many "plain" Xt-based apps will do so by default.

I think - as others mentioned - Qt is picking up those automatically
(I read somewhere that even Qt's name was inspired by Xt).
There is even http://doc.qt.io/qt-4.8/qcdestyle.html#details
for even better integration (reading CDE style files?)

Here's what is being set on my machine:

*0*ColorPalette:        DarkGold.dp
*ColorUse:      HIGH_COLOR
*DtEditor*textFontList: -dt-interface user-medium-r-normal-xs*-*-*-*-*-*-*-*-*:
*DtTerm*shadowThickness:        1
*Font:  -dt-interface user-medium-r-normal-xs*-*-*-*-*-*-*-*-*
*FontList:      -dt-interface system-medium-r-normal-xs*-*-*-*-*-*-*-*-*:
*FontSet:       -dt-interface user-medium-r-normal-xs*-*-*-*-*-*-*-*-*
*XmText*FontList:       -dt-interface user-medium-r-normal-xs*-*-*-*-*-*-*-*-*:
*XmText*Translations:   #override\n Ctrl<Key>u:delete-to-start-of-line()\n 
Ctrl<Key>k:delete-to-end-of-line()\n Ctrl<Key>a:beginning-of-line()\n 
Ctrl<Key>e:end-of-line()\n Ctrl<Key>p:process-up()\n 
Ctrl<Key>b:backward-character()\n Ctrl<Key>n:process-down()\n 
Ctrl<Key>f:forward-character()
*XmTextField*FontList:  -dt-interface user-medium-r-normal-xs*-*-*-*-*-*-*-*-*:
*XmTextField*Translations:      #override\n 
Ctrl<Key>u:delete-to-start-of-line()\n Ctrl<Key>k:delete-to-end-of-line()\n 
Ctrl<Key>a:beginning-of-line()\n Ctrl<Key>e:end-of-line()\n 
Ctrl<Key>b:backward-character()\n Ctrl<Key>f:forward-character()
*background:    #A8A8A8A8A8A8
*buttonFontList:        -dt-interface 
system-medium-r-normal-xs*-*-*-*-*-*-*-*-*:
*dtEnvMapForRemote:     
DTAPPSEARCHPATH:DTHELPSEARCHPATH:DTDATABASESEARCHPATH:XMICONSEARCHPATH:XMICONBMSEARCHPATH
*enableBtn1Transfer:    button2_transfer
*enableButtonTab:       True
*enableCDEColorFactors: True
*enableDefaultButton:   True
*enableDragIcon:        True
*enableEtchedInMenu:    True
*enableMenuInCascade:   True
*enableMultiKeyBindings:        True
*enableThinThickness:   True
*enableToggleColor:     True
*enableToggleVisual:    True
*foreground:    #FFFFFFFFFFFF
*labelFontList: -dt-interface system-medium-r-normal-xs*-*-*-*-*-*-*-*-*:
*multiClickTime:        500
*promptDialog.bboard.frame.form.text.columns:   45
*sessionVersion:        3.0
*systemFont:    -dt-interface system-medium-r-normal-xs*-*-*-*-*-*-*-*-*:
*textFontList:  -dt-interface user-medium-r-normal-xs*-*-*-*-*-*-*-*-*:
*ttyModes:      erase ^H intr ^C kill ^U start ^Q stop ^S swtch ^@ susp ^Z
*userFont:      -dt-interface user-medium-r-normal-xs*-*-*-*-*-*-*-*-*:

so if an applications uses Xt or even better Motif, it will pick those
automatically.

What can be done is to port standard CDE schemes into GTK palettes
or provide some magic way to translate those Xt resources
into what GTK wants. I think it was a clear decision taken by
GTK to give up Xt legacy (a decision that I can understand).

Maybe one of the GTK-Qt integration projects achieved something...

~Marcin

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to