最近、Geanyを使い始めました。
それに伴い、タブの矢印がちょっと見づらかったので、ソースを落としてきて表示を変更してみました。
geany-0.18.1/scintilla/Editor.cxx
void DrawTabArrow(Surface *surface, PRectangle rcTab, int ymid) {
// ### 2010.03.03 Update Start
// int ydiff = (rcTab.bottom - rcTab.top) / 2;
// int xhead = rcTab.right - 1 - ydiff;
// if (xhead <= rcTab.left) {
// ydiff -= rcTab.left - xhead - 1;
// xhead = rcTab.left - 1;
// }
// if ((rcTab.left + 2) < (rcTab.right - 1))
// surface->MoveTo(rcTab.left + 2, ymid);
// else
// surface->MoveTo(rcTab.right - 1, ymid);
// surface->LineTo(rcTab.right - 1, ymid);
// surface->LineTo(xhead, ymid - ydiff);
// surface->MoveTo(rcTab.right - 1, ymid);
// surface->LineTo(xhead, ymid + ydiff);
surface->MoveTo(rcTab.left , ymid);
surface->LineTo(rcTab.left + 2 , ymid - 2);
surface->LineTo(rcTab.left + 4 , ymid);
// ### 2010.03.03 Update End
}
コンパイルは簡単で良かった。
ここの通りにやってみたら簡単にコンパイル、インストができた。
./configure
make
sudo make install
それに伴い、タブの矢印がちょっと見づらかったので、ソースを落としてきて表示を変更してみました。
geany-0.18.1/scintilla/Editor.cxx
void DrawTabArrow(Surface *surface, PRectangle rcTab, int ymid) {
// ### 2010.03.03 Update Start
// int ydiff = (rcTab.bottom - rcTab.top) / 2;
// int xhead = rcTab.right - 1 - ydiff;
// if (xhead <= rcTab.left) {
// ydiff -= rcTab.left - xhead - 1;
// xhead = rcTab.left - 1;
// }
// if ((rcTab.left + 2) < (rcTab.right - 1))
// surface->MoveTo(rcTab.left + 2, ymid);
// else
// surface->MoveTo(rcTab.right - 1, ymid);
// surface->LineTo(rcTab.right - 1, ymid);
// surface->LineTo(xhead, ymid - ydiff);
// surface->MoveTo(rcTab.right - 1, ymid);
// surface->LineTo(xhead, ymid + ydiff);
surface->MoveTo(rcTab.left , ymid);
surface->LineTo(rcTab.left + 2 , ymid - 2);
surface->LineTo(rcTab.left + 4 , ymid);
// ### 2010.03.03 Update End
}
コンパイルは簡単で良かった。
ここの通りにやってみたら簡単にコンパイル、インストができた。
./configure
make
sudo make install
※コメント投稿者のブログIDはブログ作成者のみに通知されます