mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-22 22:04:00 -06:00
ide: Improved diff ctrl scrollbar look
This commit is contained in:
parent
2804392071
commit
571ac7f000
3 changed files with 44 additions and 38 deletions
|
|
@ -239,13 +239,15 @@ void TextCompareCtrl::ScrollBarItems::Paint(Draw& w)
|
|||
|
||||
void TextCompareCtrl::PaintScrollBarItems(Draw& w)
|
||||
{
|
||||
Size isz = DiffImg::dot().GetSize();
|
||||
Rect sr = scroll.y.GetSliderRect();
|
||||
for(int i = 0; i < lines.GetCount(); i++)
|
||||
if(lines[i].level > 1)
|
||||
w.DrawImage(sr.CenterPoint().x - isz.cx / 2,
|
||||
sr.top + scroll.y.GetSliderPos(i) - isz.cy / 2,
|
||||
DiffImg::dot());
|
||||
for(int pass = 0; pass < 2; pass++) {
|
||||
Size isz = pass ? DiffImg::dot1().GetSize() : DiffImg::dot().GetSize();
|
||||
for(int i = 0; i < lines.GetCount(); i++)
|
||||
if(lines[i].level > 1)
|
||||
w.DrawImage(sr.CenterPoint().x - isz.cx / 2,
|
||||
sr.top + scroll.y.GetSliderPos(i) - isz.cy / 2,
|
||||
pass ? DiffImg::dot1() : DiffImg::dot());
|
||||
}
|
||||
}
|
||||
|
||||
void TextCompareCtrl::Paint(Draw& draw)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue