mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Use Minimalistic for branches
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19973 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
087fc75a9d
commit
ed6f900552
@ -82,6 +82,7 @@ End
|
||||
|
||||
InsetLayout ERT
|
||||
LabelString ERT
|
||||
Decoration minimalistic
|
||||
Font
|
||||
Color latex
|
||||
Family typewriter
|
||||
@ -92,3 +93,12 @@ InsetLayout ERT
|
||||
EndFont
|
||||
End
|
||||
|
||||
InsetLayout Branch
|
||||
Decoration minimalistic
|
||||
LabelFont
|
||||
Color Red
|
||||
Size Small
|
||||
EndFont
|
||||
End
|
||||
|
||||
|
||||
|
@ -46,6 +46,7 @@ InsetBranch::InsetBranch(BufferParams const & bp,
|
||||
InsetBranchParams const & params)
|
||||
: InsetCollapsable(bp), params_(params)
|
||||
{
|
||||
setLayout(bp);
|
||||
init();
|
||||
}
|
||||
|
||||
|
@ -59,10 +59,10 @@ InsetCollapsable::Geometry InsetCollapsable::geometry() const
|
||||
return ButtonOnly;
|
||||
|
||||
case Minimalistic:
|
||||
return NoButton;
|
||||
return status() == Open ? NoButton : ButtonOnly ;
|
||||
|
||||
case Conglomerate:
|
||||
return status() == Open ? SubLabel : Corners;
|
||||
return status() == Open ? SubLabel : Corners ;
|
||||
}
|
||||
|
||||
// dummy return value to shut down a warning,
|
||||
@ -261,6 +261,11 @@ void InsetCollapsable::draw(PainterInfo & pi, int x, int y) const
|
||||
button_dim.y2 = top + dimc.height();
|
||||
|
||||
pi.pain.buttonText(xx, top + dimc.asc, layout_.labelstring, layout_.labelfont, mouse_hover_);
|
||||
} else {
|
||||
button_dim.x1 = 0;
|
||||
button_dim.y1 = 0;
|
||||
button_dim.x2 = 0;
|
||||
button_dim.y2 = 0;
|
||||
}
|
||||
|
||||
int textx, texty;
|
||||
|
@ -92,7 +92,7 @@ public:
|
||||
* -------------+-------------------------------
|
||||
* Classic | *) TopButton, <--x) ButtonOnly
|
||||
* | LeftButton
|
||||
* Minimalistic | NoButton NoButton
|
||||
* Minimalistic | ButtonOnly NoButton
|
||||
* Conglomerate | SubLabel Corners
|
||||
* ---------------------------------------------
|
||||
* *) toggled by openinlined_
|
||||
|
Loading…
Reference in New Issue
Block a user