Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2817011rdd; Sat, 13 Jan 2024 03:23:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHxhFvoHKfsyFN36+AKNEKXN1sXpf04zkDzBUi6n6gCdAR4R6bixSwsKCx5dDBTjMSQJYVr X-Received: by 2002:a05:600c:4f0f:b0:40e:36ba:e571 with SMTP id l15-20020a05600c4f0f00b0040e36bae571mr1633480wmq.6.1705144991851; Sat, 13 Jan 2024 03:23:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705144991; cv=none; d=google.com; s=arc-20160816; b=jBH4iadHXszhQ7KLNQzuJUjofdSK1py2Fa0EUmpua4L9/F7//0c0E9kFGFxy/48oeP 7PHW3aSwP3lQ3Ds+1jIxYCqXaddG1KbhJsQ3+1+rAa5vs1B7wOv3Y4+gOGaEt2eHlnO8 pi8h8U7z7+jQM2JE1iW2O6VW0UwsudMqmsbiKhNILQwlqL5zytrgtLvv1vFjaxVJXOGU RhSkU7uiCSIUl3w1xy4ZLcdVG50fbMZByU/8ndvX72DdhvH9eDFL926Pvy1ch5sgNGBD SuQ636scn85bBGSoZgLSG3U5arnwMeScvG2yzPZqEpnmrErDrz02vyp8u05RhcI22C6K BCkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=av8Asr8myFgsjrEWG+xRPm/ntkxtFS+8VOcPvhOi3a0=; fh=sxscVsdojCsQiAtZF2+fCcUqexc2QCBgNxiEk83mwHU=; b=j+vaoE4Jf+hUYXuANBQ5ThWtF8pec5X7EHOVWkI5BqviKv5W/aIk0xdoiNKbigj5jh 7kvqosREHXmXfwjRaR0dZ90edjfX++o7E9R8OToTrw2iOP4621c/mxR6plPvx8/iJqNJ d3wSM+e0M/WiIR94ongKFmKZxhAKCW0cV8JYCNOr2/35mkf905/ZUHLKC5Qc/FADGbpc sQLoVueZJ4QvZ1sudbKHgUtarifwAh2qxm4PGIu+Fm6u4Rzcn64pkVHgHxTHtu8hJ87K o2XC4IQJpmO+omE64G2T1Mx3OeFx3AMDbBl5GaCPPQL3YeuCZym44RWUvC4bGQUAIEW9 dbqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=gkhuXsbj; spf=pass (google.com: domain of linux-kernel+bounces-25271-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25271-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id kj9-20020a170907764900b00a2a6fc65de6si2175943ejc.60.2024.01.13.03.23.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 03:23:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25271-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=gkhuXsbj; spf=pass (google.com: domain of linux-kernel+bounces-25271-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25271-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8EF681F22848 for ; Sat, 13 Jan 2024 11:23:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C279920DF7; Sat, 13 Jan 2024 11:23:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gkhuXsbj" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0F2B20DEA; Sat, 13 Jan 2024 11:23:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDD20C433F1; Sat, 13 Jan 2024 11:23:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705144982; bh=aWbp+sEf+jIAbTFLPFuB/3Cx5+Za97c58mRFpcxYGJc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gkhuXsbjaKE7PSoY2E4Q9y+qX+HHGHULpuCwR2/TinkMp5adGUMEnR0Xy+zogBmUR 2636q+k0hAjEhu8/jEr/AcODCOfEbmIKZO6oukRq/zT8ez9yUR9E19+rIk579l8B4o gfu2et5OVbkTQqLFxcimEVwzOk3FSVh9Aa7GkzhrWvWmzP4P+cYbk2LL4DZQMOcMTB /u7F/30f6cbWrTw5tSR67bZw96BfggfEhcCfVBkwIXdEIEn9veCK/Somddk4qEh2iG cRb0jYb2ZuW8RitV8mrGt92DYGwO3c9uTMFyCfC2oUuKX+vLgwBszN9uBoV4udO/CC Q/BmTPOui02Bg== Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-5989e17b01fso1914738eaf.1; Sat, 13 Jan 2024 03:23:02 -0800 (PST) X-Gm-Message-State: AOJu0YwqXqC1ammfHP0bZanm9xUyku15HWXFz8YaPP4WspHu2c6+kl3e rj68V4pYAP21M7f0mjaAFS9IZ7im3TSJWx4eQ6s= X-Received: by 2002:a05:6870:3920:b0:204:1a34:9f12 with SMTP id b32-20020a056870392000b002041a349f12mr3276040oap.89.1705144982182; Sat, 13 Jan 2024 03:23:02 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231228054630.3595093-1-tfiga@chromium.org> In-Reply-To: From: Masahiro Yamada Date: Sat, 13 Jan 2024 20:22:25 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kconfig: menuconfig: Make hidden options show as dim To: Tomasz Figa Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Jesse Taube Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 10, 2024 at 10:05=E2=80=AFPM Tomasz Figa w= rote: > > On Fri, Dec 29, 2023 at 1:10=E2=80=AFAM Masahiro Yamada wrote: > > > > On Thu, Dec 28, 2023 at 2:46=E2=80=AFPM Tomasz Figa wrote: > > > > > > When hidden options are toggled on (using 'z'), the number of options > > > on the screen can be overwhelming and may make it hard to distinguish > > > between available and hidden ones. Make them easier to distinguish by > > > displaying the hidden one as dim (using the A_DIM curses attribute). > > > > > > Signed-off-by: Tomasz Figa > > > > > > > > Do you think this is useful? > > > > This changes the color only when you select a hidden item. > > > > > > For unselected items, you cannot distinguish hidden ones, > > as A_DIM has no effect to black text. > > > > > > Hmm, are you sure about that? For me it seems to dim the text. it > seems to be also used in the existing code for dlg.button_inactive.atr > of the mono theme: > > https://elixir.bootlin.com/linux/latest/source/scripts/kconfig/lxdialog/u= til.c#L26 Then, your code works only on the mono theme. (when your terminal does not support color, or "MENUCONFIG_COLOR=3Dmono make menuconfig") In the normal color mode, the foreground text is black. (Just like a picture in https://en.wikipedia.org/wiki/Menuconfig) A_DIM does nothing for black. --=20 Best Regards Masahiro Yamada