Filament selection dialog > Switch to column browser UI with search boxes (#12167)

* init

* update

* add ability to select / unselect filtered items

* update

* update

* match icon placements on filter / search boxes

* add clear button

* add ability to filter checked / unchecked items

* update

* update

* update

* update

* remove use of :has selector for better browser support

* increase contrast on light mode

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
yw4z
2026-02-11 12:42:57 +03:00
committed by GitHub
parent 89eb0b26d1
commit b02a50add0
8 changed files with 892 additions and 163 deletions

View File

@@ -452,13 +452,14 @@ function ChooseDefaultFilament()
function SelectAllFilament( nShow )
{
if( nShow==0 )
{
$('#ItemBlockArea .MItem:visible input').prop("checked",false);
// ORCA add ability to only select / unselect filted items
if (document.querySelector('.cbr-filter-bar').value) {
$('#ItemBlockArea .MItem:visible input')
.filter(function() {return $(this).closest('.MItem').css('position') !== 'absolute'})
.prop("checked", nShow != 0);
}
else
{
$('#ItemBlockArea .MItem:visible input').prop("checked",true);
else {
$('#ItemBlockArea .MItem:visible input').prop("checked",nShow!=0);
}
}