From patchwork Tue Oct 14 11:12:48 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 595 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org Authentication-Results: mail.u-boot.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=SKGvcEPr; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 74D0668148 for ; Tue, 14 Oct 2025 05:13:55 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id zI4yug49E95e for ; Tue, 14 Oct 2025 05:13:55 -0600 (MDT) Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 517936813B for ; Tue, 14 Oct 2025 05:13:55 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id DC7FE6814D for ; Tue, 14 Oct 2025 05:13:51 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id ApltYAaFqksU for ; Tue, 14 Oct 2025 05:13:51 -0600 (MDT) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.180; helo=mail-il1-f180.google.com; envelope-from=sjg@chromium.org; receiver=u-boot.org Received: from mail-il1-f180.google.com (mail-il1-f180.google.com [209.85.166.180]) by mail.u-boot.org (Postfix) with ESMTPS id EBC0768123 for ; Tue, 14 Oct 2025 05:13:46 -0600 (MDT) Received: by mail-il1-f180.google.com with SMTP id e9e14a558f8ab-430a4322b12so3534925ab.0 for ; Tue, 14 Oct 2025 04:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1760440426; x=1761045226; darn=u-boot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2oOu/fJw5PbBL/muuAR76Q1lOclN/hhbEHD4jX9cyB4=; b=SKGvcEPryRBIrTFo9hBDn0penUPw3HVGW1EymPSjfRUaCkjtpKYngiDtUJtaWP1igc Xl39jJqg99B9TkMLEn5rkWtp74dN9lHl90bOY5axXJK3HGEM9VshX1FHm2SvSudx9GZw ot/RSoY53agbV1RpgY5es45Nv64CMS5l2Gf1I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760440426; x=1761045226; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2oOu/fJw5PbBL/muuAR76Q1lOclN/hhbEHD4jX9cyB4=; b=RkdY64ax543D5IFCX3SfLv2RhD8fepcRN+vpEBep910ysPmr2LinXa69lRKm+EfYQ1 y24Eam3NRRfv8eyGsmXh7Rdg0o1OvJrnZaXHyHi3WexjeE8uMcWYARXF9gdp7i4iHM++ WkOLFtiSLlisQQlPqQ77vHgCEi54jmpAeijrS13GL/CtA0K8NJn2tgZctoXJwLEraTVw /WITj/sTrV77g2OdU8/nzeJcvQjacUShFkFmcMOq3S6h2vAy7kXkaHdhxJDlpChlxazc q4wi0xrHx1lHxi1mjqOoQcI2e7r4Yb/yL+eGibk60CgIzfbqVMqNMEa8ikWxodxD8s5P 7bGA== X-Gm-Message-State: AOJu0YxWAb8oulpm9riBrkJhbA9DLbDKMc0VH/CKNl8aUTjQ+wKX+2aX wimEbA5GboirvbbzE/Loko3I1u1GQcbTTOISqgr7XCrSe+8jWYkMrzZdqE0YM8HgzaQIyqd7w5h g2nJ/RzUJT3g= X-Gm-Gg: ASbGncvG4PKjR5X49xrMHmVi6/XZTpPD6W9E4OoG4fnsCabLPDufJDG47iK6B1x+J8o vGgjM8q2tkqMY5OSmf3B0tKQTlBWwfe/EhQDtZFGB8aqdu7hT4oskRAGDXpQgTEfZJDnBBv/sLq 08huCqhN2/khChH27fWSVrlhxcqzxBQKZ9tK4JdzY/fqsoKJ7uInUuwM28X27IP6pYHKOZmjDIP rIOa0O9MqkMwwPNTk6Fxyh3TMehIRz0WZgCHDyOtco9d7h1hk5JF80SYzK1aNUox0hZ7myAk+Zz OK4O+uNbLLkfFc/l5eIISbLxXDz85/jmDf5N5jur4GKFY5GdtokyQ9sIjPT2y38A1PVSXdklxIh eb+wWTg8OksGYbYOWje5kYdQafZtERYgjKeQ= X-Google-Smtp-Source: AGHT+IFZ+LdHKwBG+42ckxZh9sHfbUMWyT6dckBXxzQogOauFWVnVcDb8AKqTjot2767u7jxOFWLYg== X-Received: by 2002:a05:6e02:12ee:b0:42f:9dd5:3ebb with SMTP id e9e14a558f8ab-42f9dd540c5mr147514875ab.24.1760440425742; Tue, 14 Oct 2025 04:13:45 -0700 (PDT) Received: from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-430a3869174sm4608785ab.15.2025.10.14.04.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Oct 2025 04:13:44 -0700 (PDT) From: Simon Glass To: U-Boot Concept Date: Tue, 14 Oct 2025 05:12:48 -0600 Message-ID: <20251014111301.1059317-12-sjg@chromium.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251014111301.1059317-1-sjg@chromium.org> References: <20251014111301.1059317-1-sjg@chromium.org> MIME-Version: 1.0 Message-ID-Hash: DQEDXMBS2OZ7BSY3TIJEQBYJQM3HOHKE X-Message-ID-Hash: DQEDXMBS2OZ7BSY3TIJEQBYJQM3HOHKE X-MailFrom: sjg@chromium.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 11/16] boot: Hide unwanted objects and show the menu pointer List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The basic menu uses a pointer to show the current menu item. Show this and hide some other objects which are not wanted. Mark the box as unfilled, since this is how it is used with the basic menu. Explicitly disable the mouse pointer. Signed-off-by: Simon Glass --- boot/bootflow_menu.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/boot/bootflow_menu.c b/boot/bootflow_menu.c index 3df15959c0e..686769e57b5 100644 --- a/boot/bootflow_menu.c +++ b/boot/bootflow_menu.c @@ -40,6 +40,7 @@ int bootflow_menu_set_props(struct expo *exp, struct scene *scn, bool has_logo, bool use_font; ret |= scene_obj_set_bbox(scn, OBJ_BOX, 30, 90, 1366 - 30, 720); + scene_box_set_fill(scn, OBJ_BOX, false); ret |= scene_obj_set_pos(scn, OBJ_MENU, MARGIN_LEFT, 100); ret |= scene_obj_set_bbox(scn, OBJ_MENU_TITLE, 0, 32, 1366, 60); @@ -93,6 +94,17 @@ int bootflow_menu_set_props(struct expo *exp, struct scene *scn, bool has_logo, "edit the commands before booting or 'c' for a " "command-line. ESC to return to previous menu"); + /* hide a few things we don't use */ + scene_obj_set_hide(scn, OBJ_OTHER_LOGO, true); + scene_obj_set_hide(scn, OBJ_SETTINGS, true); + scene_obj_set_hide(scn, OBJ_HELP, true); + + /* select the menu and hide the pointer */ + scene_set_highlight_id(scn, OBJ_MENU); + scene_obj_set_hide(scn, OBJ_POINTER, false); + + expo_set_mouse_enable(exp, false); + exp->show_highlight = true; return 0;