From 735c01bcd684fa8805da8132e20af314172533a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Alonso=20L=C3=B3pez?= Date: Tue, 17 Dec 2024 20:54:03 +0100 Subject: [PATCH] feat(cerebro): added custiomization option for placeholder text on search bar Now in Cerebro Config there's a new text field to customize the placeholder text on the searchbar. By default it's always "Cerebro search" fix #672 --- app/lib/config.js | 1 + app/main/components/Cerebro/index.js | 2 +- app/plugins/core/settings/Settings/index.js | 9 ++++++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/lib/config.js b/app/lib/config.js index 23c54742..d9e15269 100644 --- a/app/lib/config.js +++ b/app/lib/config.js @@ -18,6 +18,7 @@ const schema = { isMigratedPlugins: { type: 'boolean', default: false }, openAtLogin: { type: 'boolean', default: true }, winPosition: { type: 'array', default: [] }, + searchBarPlaceholder: { type: 'string', default: 'Cerebro Search' }, } const store = new Store({ diff --git a/app/main/components/Cerebro/index.js b/app/main/components/Cerebro/index.js index c05baf6a..2fa3b979 100644 --- a/app/main/components/Cerebro/index.js +++ b/app/main/components/Cerebro/index.js @@ -338,7 +338,7 @@ function Cerebro({
{ @@ -57,6 +58,12 @@ function Settings({ get, set }) { value={state.proxy} onChange={(value) => changeConfig('proxy', value)} /> + changeConfig('searchBarPlaceholder', value)} + />