Tree view item spacing in Repository Browser

Ivan Zhakov <[email protected]>
Newsgroups gmane.comp.version-control.subversion.tortoisesvn.devel
Message-ID <CABw-3YeegMKoq7mQ_A_A165063F700ojf6aJqCn2jJ2k95LAJw@mail.gmail.com>
I've noticed that currently there is no spacing between items in
tree-view in Repository Browser (see tsvn-repo-browser-before.png).

I suggest add 1-pixel padding for items. See
tsvn-repo-browser-after.png and patch.

-- 
Ivan Zhakov

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3172176

To unsubscribe from this discussion, e-mail: [[email protected]].
tsvn-repo-browser-before.png (image/png, 72.1 KB) - not displayed
tsvn-repo-browser-after.png (image/png, 95.1 KB) - not displayed
tsvn-repobrowser-icon-spacing.patch (text/x-patch, 740 B)
Index: src/TortoiseProc/RepositoryBrowser.cpp
===================================================================
--- src/TortoiseProc/RepositoryBrowser.cpp	(revision 27313)
+++ src/TortoiseProc/RepositoryBrowser.cpp	(working copy)
@@ -419,6 +419,10 @@
     SetWindowTheme(m_RepoList.GetSafeHwnd(), L"Explorer", NULL);
     SetWindowTheme(m_RepoTree.GetSafeHwnd(), L"Explorer", NULL);
 
+    int minTreeItemHeight = GetSystemMetrics(SM_CYSMICON) + 2;
+    if (m_RepoTree.GetItemHeight() < minTreeItemHeight)
+        m_RepoTree.SetItemHeight((SHORT) minTreeItemHeight);
+
     AddAnchor(IDC_REPOS_BAR_CNR, TOP_LEFT, TOP_RIGHT);
     AddAnchor(IDC_REPOTREE, TOP_LEFT, BOTTOM_LEFT);
     AddAnchor(IDC_REPOLIST, TOP_LEFT, BOTTOM_RIGHT);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.