mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2025-07-21 00:21:28 +03:00
new patches for clash of gpts, vector icons
This commit is contained in:
148
patches/nxtscape/adding-new-vector-icons.patch
Normal file
148
patches/nxtscape/adding-new-vector-icons.patch
Normal file
@@ -0,0 +1,148 @@
|
||||
From bf9470a28e2b18c40599c7e6d5e7f5c592f29c53 Mon Sep 17 00:00:00 2001
|
||||
From: Nikhil Sonti <nikhilsv92@gmail.com>
|
||||
Date: Fri, 11 Jul 2025 08:55:19 -0700
|
||||
Subject: [PATCH] adding new vector icons
|
||||
|
||||
---
|
||||
components/vector_icons/BUILD.gn | 2 +
|
||||
components/vector_icons/chat_orange.icon | 48 +++++++++++++++++++
|
||||
components/vector_icons/clash_of_gpts.icon | 56 ++++++++++++++++++++++
|
||||
3 files changed, 106 insertions(+)
|
||||
create mode 100644 components/vector_icons/chat_orange.icon
|
||||
create mode 100644 components/vector_icons/clash_of_gpts.icon
|
||||
|
||||
diff --git a/components/vector_icons/BUILD.gn b/components/vector_icons/BUILD.gn
|
||||
index 39a87dbfb84be..fa3133044763a 100644
|
||||
--- a/components/vector_icons/BUILD.gn
|
||||
+++ b/components/vector_icons/BUILD.gn
|
||||
@@ -56,9 +56,11 @@ if (current_toolchain == default_toolchain) {
|
||||
"certificate.icon",
|
||||
"certificate_off.icon",
|
||||
"chat.icon",
|
||||
+ "chat_orange.icon",
|
||||
"chat_spark.icon",
|
||||
"check_circle.icon",
|
||||
"checklist.icon",
|
||||
+ "clash_of_gpts.icon",
|
||||
"close.icon",
|
||||
"close_chrome_refresh.icon",
|
||||
"close_rounded.icon",
|
||||
diff --git a/components/vector_icons/chat_orange.icon b/components/vector_icons/chat_orange.icon
|
||||
new file mode 100644
|
||||
index 0000000000000..255a41ae79134
|
||||
--- /dev/null
|
||||
+++ b/components/vector_icons/chat_orange.icon
|
||||
@@ -0,0 +1,48 @@
|
||||
+// Copyright 2024 The Chromium Authors
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+
|
||||
+CANVAS_DIMENSIONS, 960,
|
||||
+FILL_RULE_NONZERO,
|
||||
+MOVE_TO, 240, 560,
|
||||
+R_H_LINE_TO, 320,
|
||||
+R_V_LINE_TO, -80,
|
||||
+H_LINE_TO, 240,
|
||||
+R_V_LINE_TO, 80,
|
||||
+CLOSE,
|
||||
+R_MOVE_TO, 0, -120,
|
||||
+R_H_LINE_TO, 480,
|
||||
+R_V_LINE_TO, -80,
|
||||
+H_LINE_TO, 240,
|
||||
+R_V_LINE_TO, 80,
|
||||
+CLOSE,
|
||||
+R_MOVE_TO, 0, -120,
|
||||
+R_H_LINE_TO, 480,
|
||||
+R_V_LINE_TO, -80,
|
||||
+H_LINE_TO, 240,
|
||||
+R_V_LINE_TO, 80,
|
||||
+CLOSE,
|
||||
+MOVE_TO, 80, 880,
|
||||
+R_V_LINE_TO, -720,
|
||||
+R_QUADRATIC_TO, 0, -33, 23.5f, -56.5f,
|
||||
+QUADRATIC_TO_SHORTHAND, 160, 80,
|
||||
+R_H_LINE_TO, 640,
|
||||
+R_QUADRATIC_TO, 33, 0, 56.5f, 23.5f,
|
||||
+QUADRATIC_TO_SHORTHAND, 880, 160,
|
||||
+R_V_LINE_TO, 480,
|
||||
+R_QUADRATIC_TO, 0, 33, -23.5f, 56.5f,
|
||||
+QUADRATIC_TO_SHORTHAND, 800, 720,
|
||||
+H_LINE_TO, 240,
|
||||
+LINE_TO, 80, 880,
|
||||
+CLOSE,
|
||||
+R_MOVE_TO, 126, -240,
|
||||
+R_H_LINE_TO, 594,
|
||||
+R_V_LINE_TO, -480,
|
||||
+H_LINE_TO, 160,
|
||||
+R_V_LINE_TO, 525,
|
||||
+R_LINE_TO, 46, -45,
|
||||
+CLOSE,
|
||||
+R_MOVE_TO, -46, 0,
|
||||
+R_V_LINE_TO, -480,
|
||||
+R_V_LINE_TO, 480,
|
||||
+CLOSE
|
||||
diff --git a/components/vector_icons/clash_of_gpts.icon b/components/vector_icons/clash_of_gpts.icon
|
||||
new file mode 100644
|
||||
index 0000000000000..8573c96085fa8
|
||||
--- /dev/null
|
||||
+++ b/components/vector_icons/clash_of_gpts.icon
|
||||
@@ -0,0 +1,56 @@
|
||||
+// Copyright 2024 The Chromium Authors
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+
|
||||
+CANVAS_DIMENSIONS, 960,
|
||||
+FILL_RULE_NONZERO,
|
||||
+MOVE_TO, 440, 840,
|
||||
+H_LINE_TO, 200,
|
||||
+R_QUADRATIC_TO, -33, 0, -56.5f, -23.5f,
|
||||
+QUADRATIC_TO_SHORTHAND, 120, 760,
|
||||
+R_V_LINE_TO, -560,
|
||||
+R_QUADRATIC_TO, 0, -33, 23.5f, -56.5f,
|
||||
+QUADRATIC_TO_SHORTHAND, 200, 120,
|
||||
+R_H_LINE_TO, 240,
|
||||
+R_V_LINE_TO, 720,
|
||||
+CLOSE,
|
||||
+R_MOVE_TO, -80, -80,
|
||||
+R_V_LINE_TO, -560,
|
||||
+H_LINE_TO, 200,
|
||||
+R_V_LINE_TO, 560,
|
||||
+R_H_LINE_TO, 160,
|
||||
+CLOSE,
|
||||
+R_MOVE_TO, 160, -320,
|
||||
+R_V_LINE_TO, -320,
|
||||
+R_H_LINE_TO, 240,
|
||||
+R_QUADRATIC_TO, 33, 0, 56.5f, 23.5f,
|
||||
+QUADRATIC_TO_SHORTHAND, 840, 200,
|
||||
+R_V_LINE_TO, 240,
|
||||
+H_LINE_TO, 520,
|
||||
+CLOSE,
|
||||
+R_MOVE_TO, 80, -80,
|
||||
+R_H_LINE_TO, 160,
|
||||
+R_V_LINE_TO, -160,
|
||||
+H_LINE_TO, 600,
|
||||
+R_V_LINE_TO, 160,
|
||||
+CLOSE,
|
||||
+R_MOVE_TO, -80, 480,
|
||||
+R_V_LINE_TO, -320,
|
||||
+R_H_LINE_TO, 320,
|
||||
+R_V_LINE_TO, 240,
|
||||
+R_QUADRATIC_TO, 0, 33, -23.5f, 56.5f,
|
||||
+QUADRATIC_TO_SHORTHAND, 760, 840,
|
||||
+H_LINE_TO, 520,
|
||||
+CLOSE,
|
||||
+R_MOVE_TO, 80, -80,
|
||||
+R_H_LINE_TO, 160,
|
||||
+R_V_LINE_TO, -160,
|
||||
+H_LINE_TO, 600,
|
||||
+R_V_LINE_TO, 160,
|
||||
+CLOSE,
|
||||
+MOVE_TO, 360, 480,
|
||||
+CLOSE,
|
||||
+R_MOVE_TO, 240, -120,
|
||||
+CLOSE,
|
||||
+R_MOVE_TO, 0, 240,
|
||||
+CLOSE
|
||||
--
|
||||
2.49.0
|
||||
|
||||
2045
patches/nxtscape/clash-of-gpts.patch
Normal file
2045
patches/nxtscape/clash-of-gpts.patch
Normal file
File diff suppressed because it is too large
Load Diff
48
patches/nxtscape/update-color-pinned-views.patch
Normal file
48
patches/nxtscape/update-color-pinned-views.patch
Normal file
@@ -0,0 +1,48 @@
|
||||
From 09246b944b59358125845badb1acd375f5655775 Mon Sep 17 00:00:00 2001
|
||||
From: Nikhil Sonti <nikhilsv92@gmail.com>
|
||||
Date: Fri, 11 Jul 2025 10:28:12 -0700
|
||||
Subject: [PATCH] update toolbar icon colors for third party llm and clash of
|
||||
gpts
|
||||
|
||||
---
|
||||
.../ui/views/toolbar/pinned_action_toolbar_button.cc | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/chrome/browser/ui/views/toolbar/pinned_action_toolbar_button.cc b/chrome/browser/ui/views/toolbar/pinned_action_toolbar_button.cc
|
||||
index 94be59b31d59e..6e5dc229b3c6c 100644
|
||||
--- a/chrome/browser/ui/views/toolbar/pinned_action_toolbar_button.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/pinned_action_toolbar_button.cc
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <type_traits>
|
||||
|
||||
#include "base/auto_reset.h"
|
||||
+#include "chrome/browser/ui/actions/chrome_action_id.h"
|
||||
#include "chrome/browser/ui/views/side_panel/side_panel_entry.h"
|
||||
#include "chrome/browser/ui/views/side_panel/side_panel_entry_id.h"
|
||||
#include "chrome/common/extensions/extension_constants.h"
|
||||
@@ -29,6 +30,7 @@
|
||||
#include "chrome/browser/ui/views/toolbar/toolbar_ink_drop_util.h"
|
||||
#include "chrome/browser/ui/web_applications/app_browser_controller.h"
|
||||
#include "chrome/grit/generated_resources.h"
|
||||
+#include "third_party/skia/include/core/SkColor.h"
|
||||
#include "ui/actions/action_id.h"
|
||||
#include "ui/actions/action_utils.h"
|
||||
#include "ui/actions/actions.h"
|
||||
@@ -241,7 +243,13 @@ void PinnedActionToolbarButton::UpdateIcon() {
|
||||
? icons->touch_icon
|
||||
: icons->icon;
|
||||
|
||||
- if (is_icon_visible_ && action_engaged_) {
|
||||
+ // Special case for Clash of GPTs and Third Party LLM - use custom orange color
|
||||
+ if (action_id_ == kActionSidePanelShowClashOfGpts ||
|
||||
+ action_id_ == kActionSidePanelShowThirdPartyLlm) {
|
||||
+ const SkColor orange = SkColorSetRGB(0xFB, 0x65, 0x18);
|
||||
+ UpdateIconsWithColors(icon, orange, orange, orange,
|
||||
+ GetForegroundColor(ButtonState::STATE_DISABLED));
|
||||
+ } else if (is_icon_visible_ && action_engaged_) {
|
||||
UpdateIconsWithColors(
|
||||
icon, GetColorProvider()->GetColor(kColorToolbarActionItemEngaged),
|
||||
GetColorProvider()->GetColor(kColorToolbarActionItemEngaged),
|
||||
--
|
||||
2.49.0
|
||||
|
||||
@@ -1,15 +1,26 @@
|
||||
# nxtscape/branding.patch
|
||||
nxtscape/first-run-nxtscape.patch
|
||||
|
||||
# features
|
||||
nxtscape/add-importer-supporter-for-chrome.patch
|
||||
nxtscape/nxtscape-settings-ui.patch
|
||||
|
||||
# chromium
|
||||
nxtscape/disable-user-gesture-restriction-on-sidepanel.patch
|
||||
nxtscape/disable-info-bar-in-cdp.patch
|
||||
nxtscape/disable-google-key-info-bar.patch
|
||||
|
||||
# agents
|
||||
nxtscape/ai-chat-extension.patch
|
||||
nxtscape/bug-reporter-extension.patch
|
||||
nxtscape/add-importer-supporter-for-chrome.patch
|
||||
nxtscape/disable-info-bar-in-cdp.patch
|
||||
nxtscape/pin-nxtscape-ai-chat.patch
|
||||
nxtscape/nxtscape-settings-ui.patch
|
||||
|
||||
# updater
|
||||
nxtscape/nxtscape-updater-sparkle.patch
|
||||
nxtscape/add-sparkle-info-plist-keys.patch
|
||||
|
||||
# new views
|
||||
nxtscape/adding-new-vector-icons.patch
|
||||
nxtscape/embed-third-party-llm-in-side-panel.patch
|
||||
# nxtscape/UI-updating-About-string.patch
|
||||
nxtscape/disable-google-key-info-bar.patch
|
||||
nxtscape/pin-nxtscape-agents-together.patch
|
||||
nxtscape/clash-of-gpts.patch
|
||||
nxtscape/update-color-pinned-views.patch
|
||||
|
||||
Reference in New Issue
Block a user