Configure highlight of repeated text in Sublime 3 - sublimetext3

When you double click on text, it highlights the current text and then places a thin blue border around repeated text. I want to make this thin blue border thicker and change it to white for easier visibility. Can this be configured? Thank you.

The highlighting you are referring to is controlled by the match_selection preference. I'm just mentioning this here in case it helps others find this Q/A pair in future.
It seems that the color for this is controlled by the caret color in your color scheme. However, it seems that there is no way to change the color without changing the color of the caret, or make the border thicker. There is an open feature request for the latter here: https://github.com/SublimeTextIssues/Core/issues/453

Related

Given a Primary color, how to decides what will be the OnPrimary color by material design guidelines?

In the material color tool there is a place where you choose the primary color and it shows you the text color on primary.
Given a color in hexadecimal string, how to know what will be the suggested text color on that color?
e.g.
Some colors will suggest that the text should be black
Others will say that it should be white
Observation: Any language is ok, just want to know what is the logic / function to do it.
They wrote something about text legibility. Apart from that, I played around a bit. It seems like it's a weighted mean of the r,g,b parts of the color. Blue has significantly moreimpact than green, which has slightly lessimpact than red. So it is probably something like (1*r + 0.9*g + 1.2*b) / 3.1 > 0xff (2.85 is the sum of the weights). If it surpasses the threshold, the text is black, else it is white.
In react's material-ui they have a "formula" to create it, which uses the same logic as material components.

Create an image or photo that can change colour in Tkinter

I need to display an outline of a dog in a window. I then need to be able to change the colour for different part of the dog by inputting numbers into entry boxes- for example if I put a '1' in the 'head' entry box, the head changes to a yellow colour. The dog should be white by default.
I can just create 4 images (one for the head, body, legs, and tale) to change each part of the bod. I've thought about changing the rgb values of each image to change the colour, but this would also change the colour for the outline (meant to stay black). The only other thing I could think of was making a red, blue, green, yellow, blue, etc. version of each image (head, body, legs, tail), and then just displaying the red version of the image when I need to (and the same for other colours).
I need to know if there is any other way to do this (perhaps with the canvas widget?) before I code it because It will take a long time to change the colour of each image. I just have no idea where to start.
Thanks in advance for your answers
You will have to make different widgets for each part of the dog(e.g: Head, Abdomen etc.) and you will need different images for the dogs part and color, after that you can implement a button that changes the color with the 'if' function.

I am trying to put some border to my cross text in excel

I am trying to give some border to my cross text which around 45 degree in excel but issue is that whenever i apply border to cross text the border also get apply at 45 degree.
I am looking for a straight rectangle border which contains cross text in it in excel.
Please help me to do that
I dont think you can find a way around that, but you could improvise;
try removing all the borders on that particular cell then sort of draw a rectangle (Or similar shape) and set its fill to nothing so it can give this impression of a "straight border" and this will look good, if you format it well that is, on printed paper.
Or you can draw a textbox on top of the cell (with the same size) and remove any color fill
If there's an option of locking its position, it would be useful too

Batch replace colour images, except a specific colour on Linux

I have 456 .PNG icons with a white image on a blue background, but the background is pixelated. So when I use mogrify to replace a colour, lots of parts of the icon won't become the red colour I want, and stay in a shade of blue. Is there a way to replace all colours, all shades of blue, and keep the white icon intact? Because mogrify recolouring the icons would turn the whole icon red, even the white part.
I have a feeling the solution should be simple, but after some googling and some messing around with Imagemagick and Phatch, I can't seem to figure it out.
I kind of need a batch solution, since theming all the icons manually would be... Something I don't want to do.
I am open for any suggestions and I apologizs in advance if this question turns out to be a duplicate!
If you need more information, just ask, and I can give it to you!
The "+opaque color" option will select all colors except the named one, and turn them to the fill color. Thus,
mogrify -fill red +opaque white *.png
will turn everything except the white pixels to red.

Is there a way to use logic in Excel to change fonts?

So I've been working with excel to change characters and colors within cells based on where numbers fall. For example when looking at values less than 10 a symbol will appear as red down arrows and values higher than 30 will be create a green up arrow. This is all well and good and I'm using the Wingdings 3 font on the cells along with various rules to change color. The problem is the middle range. I am attempting to have a circle of varying color appear when the cells being looked at contain values greater than 9 and less than 30 (currently it displays as a horizontal double headed arrow). The problem is the Wingdings 3 font does not include any circle symbols and I can't figure out how to use the Conditional Formatting to change the font based on numerical value.
Hopefully there is a fix to this so that I can continue working on this project.
Below is what my spread sheet currently produces:
Just kidding about the image I don't have enough reputation to do that yet.
Alright so the best way to do this (for my problem) was to go into the Conditional Formatting section of Excel and instead of using the IF function by cell just use the icon sets and manage the rules associated with them. I only needed a red and green arrows and circles and with some toying around with the settings a 4 symbol icon set with my chosen shapes did the trick. It ended up being simpler than the IF logic along with rule application I was attempting at the beginning. Just know that there are few symbol choices and no way to add more in the current version of Excel.

Resources