<< token << '\'');
string const result =
- params().readToken(lex, token, d->filename.onlyPath());
+ params().readToken(lex, token, d->filename);
if (!result.empty()) {
if (token == "\\textclass") {
d->layout_position = result;
undo().recordUndoBufferParams(CursorData());
branch_list.add(branch_name);
branch = branch_list.find(branch_name);
- string x11hexname;
- string const bcolor = branch->color();
- if (bcolor.size() == 7 && bcolor[0] == '#')
- x11hexname = bcolor;
- else {
- bool const darkmode = theApp() ? theApp()->isInDarkMode() : false;
- x11hexname = lcolor.getX11HexName(lcolor.getFromLyXName(bcolor), darkmode);
- }
- docstring const str = branch_name + ' ' + from_ascii(x11hexname);
- lyx::dispatch(FuncRequest(LFUN_SET_COLOR, str));
+ branch->setColors("background", "background");
dr.setError(false);
dr.screenUpdate(Update::Force);
}