From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Add some built-in faces for inheritance Date: Sat, 19 Sep 2020 15:36:30 -0400 Message-ID: References: <5a3685f0-a1dd-44f9-9e15-e8f1bc35ea57@default> <87h7rw7zxf.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1935"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Tim Cross Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 19 21:37:49 2020 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 1kJig9-0000QX-Bj for ged-emacs-devel@m.gmane-mx.org; Sat, 19 Sep 2020 21:37:49 +0200 Original-Received: from localhost ([::1]:36738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJig8-0000Au-E3 for ged-emacs-devel@m.gmane-mx.org; Sat, 19 Sep 2020 15:37:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJiey-000880-AZ for emacs-devel@gnu.org; Sat, 19 Sep 2020 15:36:36 -0400 Original-Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]:38530) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJiev-0007HY-86 for emacs-devel@gnu.org; Sat, 19 Sep 2020 15:36:36 -0400 Original-Received: by mail-qt1-x836.google.com with SMTP id c18so8578864qtw.5 for ; Sat, 19 Sep 2020 12:36:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Lauua+YKFXNDpwYtHfAS2NhO0kdMik+CApE2eXPi+Ek=; b=HfPdIkcDiPVEY+AXqIQhiptY8d//oh9+FRk35PH3GkMyDA4zM57PRg/gTJZZTT5peK k9VBbfaEuO7lJBAH/i5IpIft5mHmN1RhNaaMTfe5iGv6eCZ5R1S4UJ4+ai9KYKmzbW91 FkGK6AKgEqzSa5V3/FGmN79yauwiM65mxWKCKrRX3OoVkjngGmvMLuyt7ZP0P87Q85BD 136AsAKr+0F8dx3jhLIYyLDuKPryyrplsRkv8QvqMom0BrBdzEymsAEdaDqcC3m3/egI f+k0yCjmZqlYzrOiqNuMhuqBYxMVeFfXKHHQQC9KlE9IXlD4Cx/fkiRD+XupkHg4yXu1 r4Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Lauua+YKFXNDpwYtHfAS2NhO0kdMik+CApE2eXPi+Ek=; b=Pn5Lo8MnyIIMmN+ypOByVTh+t4hbNtCkIQZn8YWohvP+Suh7iaHCOd8YY3RW0DnolY qm7Fht7ImidIcHCUw353qFQXZtrJRAg+OSEk6phwJdgJNY3iilPUmmy9K+0Sy5sc4cKw gPF/o/nvTsZ+3QaEq8DWYkMvtX9YdhvosOCcKcyv+G403I+NwUqSKYV2wO384Jx/riLN Tq+MB/7AqK8hB7EFkrcTnRljCO4ocvFfosTmP8Q1XmWXANQjXJdtfXJ4XOEs+bUtqFZM sM+jL6bONGUZ5QPjto52Rg6KofbVka8kEzwGodB73hEwdpDDmUNjnXJEn/K6fWk/O9up +7MQ== X-Gm-Message-State: AOAM531WSMxY5CARa0OuKT1znZ47gfc/TnsEZwOxawCwSnCFehKbLyUP /+OYOQokpsgQmiFI/7X2PFg= X-Google-Smtp-Source: ABdhPJwiRD5UNFkwmhK3yPPPtpB5tCqB+sUjSasWjcB8Zw/ygzsFSkO3NeP3Rp3vFbzEFgvHtz6XCg== X-Received: by 2002:ac8:f04:: with SMTP id e4mr25957339qtk.342.1600544192235; Sat, 19 Sep 2020 12:36:32 -0700 (PDT) Original-Received: from ?IPv6:2601:98a:4200:9210:d9f6:8d22:812e:482b? ([2601:98a:4200:9210:d9f6:8d22:812e:482b]) by smtp.gmail.com with ESMTPSA id m97sm5245717qte.55.2020.09.19.12.36.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Sep 2020 12:36:31 -0700 (PDT) In-Reply-To: <87h7rw7zxf.fsf@gmail.com> X-Mailer: Apple Mail (2.3608.120.23.2.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::836; envelope-from=casouri@gmail.com; helo=mail-qt1-x836.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:256212 Archived-At: I think it would be helpful to define some common UI concepts as faces, = so package authors can inherit from them instead of hard-coding their = face. We already have faces like shadow, bold, error, warning, info, = button, link. We can add a few more: - foreground-highlight: highlight text using a different foreground = color, used for matched results, etc. - background-highlight: highlighted text using a different background = color, used for selected candidate in company/ivy/helm, etc. - block: text with a different background to separate from main text, = used for code blocks, input fields, pop ups, etc =E2=80=A6 It would be helpful if someone with UI-design background could provide = some ideas. Yuan=