Home Download Buy Blog Forum Support

Remove "rounded" corners from text selection & highlights

Remove "rounded" corners from text selection & highlights

Postby danderson on Sun Mar 04, 2012 3:43 pm

Is there any way to make the "rounded corners" on the text highlights (selection, find, etc.) square? Thanks.
danderson
 
Posts: 6
Joined: Sun Mar 04, 2012 12:36 am

Re: Remove "rounded" corners from text selection & highlights

Postby wuub on Sun Mar 04, 2012 3:57 pm

SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: Remove "rounded" corners from text selection & highlights

Postby wbond on Sun Mar 04, 2012 11:08 pm

@wuub

That is a totally different issue, from what I can tell. But perhaps I am misunderstanding. I think you want the ability to sometimes draw without rounded corners. I'm ok with that, I just don't want to lose the default rounded corners on selections.

@danderson

I guess to each his own, but the little details like the rounded corners on the selection was one of the little details that sold me on sublime.
wbond
 
Posts: 528
Joined: Mon Feb 28, 2011 5:33 am

Re: Remove "rounded" corners from text selection & highlights

Postby weslly on Mon Mar 05, 2012 12:07 am

wbond wrote:I guess to each his own, but the little details like the rounded corners on the selection was one of the little details that sold me on sublime.


this.
weslly
 
Posts: 202
Joined: Sun Aug 28, 2011 3:57 am
Location: Brazil

Re: Remove "rounded" corners from text selection & highlights

Postby jps on Mon Mar 05, 2012 12:32 am

The rounded corners are actually functionally important in a multiple selection environment, to help distinguish neighbouring selections.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Remove "rounded" corners from text selection & highlights

Postby wuub on Mon Mar 05, 2012 8:36 am

wbond wrote:That is a totally different issue, from what I can tell. But perhaps I am misunderstanding. I think you want the ability to sometimes draw without rounded corners. I'm ok with that, I just don't want to lose the default rounded corners on selections.


Ultimately I do, but asking for a separate API for drawing seemed like a very long shot at this time (== not going to happen in ST2) and from the outside it seems that ST2 is hardcoded to draw all selections/regions as rounded rectangles.

In that respect both issues are the same.
Also from my point of both solutions:
- turning off roundness using view.settings()
- selecting a different set of flags for add_regions()
are equivalent == solve my problem
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: Remove "rounded" corners from text selection & highlights

Postby danderson on Mon Mar 05, 2012 2:53 pm

The rounded corners are actually functionally important in a multiple selection environment, to help distinguish neighbouring selections.


Never thought about that. I'm sure a lot of people like the rounded corners. For me it looks out of place. A setting would be great.

Is it possible to set the color of the border independently from the cursor color? That could probably help. As far as I can tell, the two colors are one in the same. Thanks.
danderson
 
Posts: 6
Joined: Sun Mar 04, 2012 12:36 am


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 33 guests