all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Faces inheriting colors from gtk theme
@ 2012-06-30 19:35 Jeremy Nickurak
  0 siblings, 0 replies; 3+ messages in thread
From: Jeremy Nickurak @ 2012-06-30 19:35 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1429 bytes --]

I've read and observed that emacs24 uses standard gtk colors for the
 "region" face.

Is it also supposed to do that for other faces? Or is there a way to get
that behavior?

In particular, it would seem natural to define faces as follows:

(cursor ((t (:foreground "theme_selected_fg_color_" :background
"theme_selected_bg_color_"))))
(mouse ((t (:foreground "theme_selected_fg_color_" :background
"theme_selected_bg_color_"))))
(fringe ((t (:foreground "theme_fg_color_" :background "theme_bg_color_"))))
(border ((t (:foreground "theme_fg_color_" :background "theme_bg_color_"))))
(mode-line ((t (:foreground "theme_fg_color_" :background "theme_bg_color_"
:box (:line-width -1 :style released-button)))))
(mode-line-buffer-id ((t (:foreground "theme_fg_color_" :background
"theme_bg_color_"))))
(mode-line-inactive ((t (:foreground "theme_fg_color_" :background
"theme_bg_color_"))))
(minibuffer-prompt ((t (:foreground "theme_fg_color_" :background
"theme_base_color_"))))
(region ((t (:foreground "theme_fg_color_" :background
"theme_selected_bg_color_"))))
(secondary-selection ((t (:foreground "theme_fg_color_" :background
"theme_selected_bg_color_"))))
(tooltip ((t (:background "theme_tooltip_bg_color_" :foreground
"theme_tooltip_fg_color_"))))
(default ((t (:foreground "theme_fg_color_" :background
"theme_base_color_")))))

... where the theme_X_colors were derived from the appropriate gtk color
scheme property.

[-- Attachment #2: Type: text/html, Size: 1927 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Faces inheriting colors from gtk theme
       [not found] <mailman.3777.1341085750.855.help-gnu-emacs@gnu.org>
@ 2012-11-08 21:26 ` evan
       [not found] ` <mailman.12573.1352412538.855.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: evan @ 2012-11-08 21:26 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: help-gnu-emacs

On an opposite note...

Is it possible to disable the use of gtk colors for region?

On Saturday, 30 June 2012 20:35:25 UTC+1, Jeremy Nickurak  wrote:
> I've read and observed that emacs24 uses standard gtk colors for the  "region" face.
> 
> 
> Is it also supposed to do that for other faces? Or is there a way to get that behavior?
> 
> 
> 
> In particular, it would seem natural to define faces as follows:
> 
> 
> 
> (cursor ((t (:foreground "theme_selected_fg_color_" :background "theme_selected_bg_color_"))))
> 
> (mouse ((t (:foreground "theme_selected_fg_color_" :background "theme_selected_bg_color_"))))
> (fringe ((t (:foreground "theme_fg_color_" :background "theme_bg_color_"))))
> 
> (border ((t (:foreground "theme_fg_color_" :background "theme_bg_color_"))))
> (mode-line ((t (:foreground "theme_fg_color_" :background "theme_bg_color_" :box (:line-width -1 :style released-button)))))
> 
> (mode-line-buffer-id ((t (:foreground "theme_fg_color_" :background "theme_bg_color_"))))
> (mode-line-inactive ((t (:foreground "theme_fg_color_" :background "theme_bg_color_"))))
> 
> (minibuffer-prompt ((t (:foreground "theme_fg_color_" :background "theme_base_color_"))))
> (region ((t (:foreground "theme_fg_color_" :background "theme_selected_bg_color_"))))
> 
> (secondary-selection ((t (:foreground "theme_fg_color_" :background "theme_selected_bg_color_"))))
> (tooltip ((t (:background "theme_tooltip_bg_color_" :foreground "theme_tooltip_fg_color_"))))
> 
> (default ((t (:foreground "theme_fg_color_" :background "theme_base_color_")))))
> 
> 
> ... where the theme_X_colors were derived from the appropriate gtk color scheme property.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Faces inheriting colors from gtk theme
       [not found] ` <mailman.12573.1352412538.855.help-gnu-emacs@gnu.org>
@ 2012-11-10  7:20   ` William Gardella
  0 siblings, 0 replies; 3+ messages in thread
From: William Gardella @ 2012-11-10  7:20 UTC (permalink / raw)
  To: help-gnu-emacs

evan <evangelou@gmail.com> writes:

> On an opposite note...
>
> Is it possible to disable the use of gtk colors for region?
>

My advice would just be to run as fast as you can from the Gtk build of
Emacs.  Not only will you avoid color theming conflicts, but you will
also avoid the notorious "X hiccups cause Emacs to hang" issue, as in
this message:

kjonca@poczta.onet.pl (Kamil Jońca) writes:

> kjonca@poczta.onet.pl (Kamil Jońca) writes:
>
>> 1. Run emacs24 with server on machine A
>> 2. From machine B try to ssh -X A
>> 3. run something like "emacsclient -c -d ${DISPLAY} -n"  within ssh
>>     session created earlier.
>>     (so far everything works ok - I have frame on machine B, and can switch
>>     to gnus buffer, for example)
>>
>> 4 C-x/C-c or C-x 5 0  - frame disappears
>> 5. Then I try to exit ssh sesion, but session cannot disconnect - it
>>    looks like that emacs server still used it somehow. 
>> 6. When I kill ssh on machine B, then emacs on machine A disappears :(
>>
>> What am I missing?
>> #v+
>> GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-09 on trouble, modified by Debian
>> #v-
>
> It looks like emacs without gtk behaves better - no hangs.
> KJ

Best,
WGG


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-10  7:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-30 19:35 Faces inheriting colors from gtk theme Jeremy Nickurak
     [not found] <mailman.3777.1341085750.855.help-gnu-emacs@gnu.org>
2012-11-08 21:26 ` evan
     [not found] ` <mailman.12573.1352412538.855.help-gnu-emacs@gnu.org>
2012-11-10  7:20   ` William Gardella

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.