[PATCH] repoview: increase the size of pentagon to match circle area

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Dec 17 17:19:07 CST 2014



On 12/17/2014 03:18 PM, Sean Farley wrote:
>
> Pierre-Yves David writes:
>
>> # HG changeset patch
>> # User Pierre-Yves David <pierre-yves.david at fb.com>
>> # Date 1418849566 28800
>> #      Wed Dec 17 12:52:46 2014 -0800
>> # Node ID b746045044b1b8fa5f85d0b8b852864883703c08
>> # Parent  35c14c46befb10512ad2a1ec90fa02b9a78cb178
>> repoview: increase the size of pentagon to match circle area
>>
>> The pentagon have less area for the same outer radius. as the result, the
>> pentagon seems smaller. We bump the size a bit to match the circle area.
>>
>> diff --git a/tortoisehg/hgqt/repoview.py b/tortoisehg/hgqt/repoview.py
>> --- a/tortoisehg/hgqt/repoview.py
>> +++ b/tortoisehg/hgqt/repoview.py
>> @@ -573,11 +573,11 @@ class GraphDelegate(QStyledItemDelegate)
>>               symbol = closesymbol
>>           elif gnode.shape == graph.NODE_SHAPE_REVISION_SECRET:
>>               symbolsize = 0.45 * radius
>>               symbol = square
>>           elif gnode.shape == graph.NODE_SHAPE_REVISION_DRAFT:
>> -            symbolsize = 0.5 * radius
>> +            symbolsize = 0.57 * radius
>
> Wrong list?

yop, I need to check my email config in my thg repo.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list