From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Making `x-underline-at-descent-line' a face attribute Date: Fri, 07 Jan 2022 08:43:08 +0200 Message-ID: <83a6g86o77.fsf@gnu.org> References: <87lezt5v7h.fsf.ref@yahoo.com> <87lezt5v7h.fsf@yahoo.com> <83sfu18dao.fsf@gnu.org> <83mtk87hmd.fsf@gnu.org> <6e2d1fc6-a727-f98a-28e8-46b5d2225d13@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26583"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, emacs-devel@gnu.org To: Jim Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 07 07:59:04 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n5jDL-0006hf-Gq for ged-emacs-devel@m.gmane-mx.org; Fri, 07 Jan 2022 07:59:03 +0100 Original-Received: from localhost ([::1]:48434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5jDK-0008Gl-3T for ged-emacs-devel@m.gmane-mx.org; Fri, 07 Jan 2022 01:59:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5ixi-0008Vv-Bj for emacs-devel@gnu.org; Fri, 07 Jan 2022 01:42:54 -0500 Original-Received: from [2001:470:142:3::e] (port=37846 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5ixh-00043b-G4; Fri, 07 Jan 2022 01:42:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Fs9lavAVCqJkMWpCIYJOnQRasduxrhJvetFnhils+Jo=; b=a2DEHecNT5Jx FYCGTZHnuaxEu33qL/fgpzN8VaS9T43qLbTiR1B3gpNiBDX2nhwGCAWTIFcXukKidQxyHvmAI+hq7 OSTxSitBI4f9Jo6jyO+lQX7ZjfGVQCHwrzASbWLTpe5MQPo5loeJJ4twYGMVcNIBajgFcdvn1i/dD xzegdxsINlu7El2oLTchQVz4OQLR1C0YIow0r448md99bk+WADhYyra0qeIju0LQ/yeD+tm3fpu6q faeY+idUdDcQZJBVofvte2wF/8GJUIaabqH081Hqsw4VgIugfHjwPs9mIeUkinaiAx/MGKL5ffSnm eLgc/8YXGAZE1+SICz7cww==; Original-Received: from [87.69.77.57] (port=2883 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5ixh-0006Po-1a; Fri, 07 Jan 2022 01:42:53 -0500 In-Reply-To: <6e2d1fc6-a727-f98a-28e8-46b5d2225d13@gmail.com> (message from Jim Porter on Thu, 6 Jan 2022 12:49:59 -0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:284371 Archived-At: > Cc: luangruo@yahoo.com, emacs-devel@gnu.org > From: Jim Porter > Date: Thu, 6 Jan 2022 12:49:59 -0800 > > It's interesting that you mention web browsers in particular, since > that's part of what got me to think about using :box to create > nicer-looking tab-bar tabs. In Firefox, the visuals are determined by > CSS, and Emacs's :box attribute bears a striking resemblance to CSS's > `border'. Having done some similar UI design in CSS, I'd likely > implement the visuals for tabs partly using CSS `border' in the same way > that I described using :box. (Of course, I'd use many other CSS features > to adjust the appearance until it looks good.) It may look similar, but it isn't. Face properties are not meant to produce 3D visual appearances of buttons and button-like widgets, they are meant to support text display. > > Once again, the released-button style should be produced by actually > > drawing a released button, like we do on the tool bar and the mode > > line. Playing color games with the :box attribute will produce an > > unclean emulation of that, and I therefore object to doing that. We > > shouldn't implement such unclean visuals. > > I don't have a strong opinion on this, so I don't mind if :color stays > the way it is. It's just the first example I could come up with that > someone might use the feature for. See above: I simply think that face properties are inappropriate for this job. They could be used for prototyping, but not for the real thing, because it will just look bad.