From 136afd0402f0c5680ed114cc0cad5ed7450636cf Mon Sep 17 00:00:00 2001 From: Salim B Date: Tue, 9 Mar 2021 20:19:21 +0100 Subject: [PATCH] Fix search bar styling Only the first search bar will get the id `rstudio_find_replace_bar`, all the additional ones (in other document tabs) will get `rstudio_find_replace_bar_#` where `#` is an increasing number, so we have to take that into account. --- inst/resources/rscodeio.rstheme | 2 +- inst/resources/rscodeio_tomorrow_night_bright.rstheme | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inst/resources/rscodeio.rstheme b/inst/resources/rscodeio.rstheme index 9d2058d..7f17906 100644 --- a/inst/resources/rscodeio.rstheme +++ b/inst/resources/rscodeio.rstheme @@ -453,7 +453,7 @@ /* search input */ .rstudio-themes-dark - :-webkit-any(.rstheme_toolbarWrapper, #rstudio_find_replace_bar) + :-webkit-any(.rstheme_toolbarWrapper, [id^="rstudio_find_replace_bar"]) .search, .rstudio-themes-flat .themedPopupPanel .search { background-color: rgb(60, 60, 60) !important; diff --git a/inst/resources/rscodeio_tomorrow_night_bright.rstheme b/inst/resources/rscodeio_tomorrow_night_bright.rstheme index cc2e5a5..7944fd7 100644 --- a/inst/resources/rscodeio_tomorrow_night_bright.rstheme +++ b/inst/resources/rscodeio_tomorrow_night_bright.rstheme @@ -903,7 +903,7 @@ /* search input */ .rstudio-themes-dark - :-webkit-any(.rstheme_toolbarWrapper, #rstudio_find_replace_bar) + :-webkit-any(.rstheme_toolbarWrapper, [id^="rstudio_find_replace_bar"]) .search, .rstudio-themes-flat .themedPopupPanel .search { background-color: rgb(60, 60, 60) !important;