NSTableView with blurry NSTextField on non-Retina screens - nstableview

On macOS 10.14.5, I have a view-based NSTableView and one column contains an NSTextField. When highlighted and shown on a Retina screen, it looks good, but on a non-Retina screen it looks terrible. How can I fix this?
Non-Retina Screen:
Retina Screen:
The first column's NSTextField has the same properties as the second column's NSTextField, so I really don't know why they look different.
A curiosity is that if I reorder the two columns during runtime, both look good, but if I set them up that way at build time, the Path column is still messed up.

Related

Getting the width for Chrome dev tools device emulation

Basically I am writing a web application (using Bootstrap so it's responsive) that will accessed using tiny hand held scanners specifically this one:
https://www.zebra.com/us/en/products/spec-sheets/mobile-computers/handheld/tc25.html
I need to make sure that the display works for both desktops and the handhelds so knowing this is important.
On there it has the display spec as "4.3 in. color WVGA (800x480); LED backlight; Corning Gorilla Glass"
Now when using chrome tools (emulated devices) I need to put the width and height in (I'm doing this to make sure the CSS is automatically adjusting correctly). Now what I need to know is the width and height.
I thought the first number (800) was suppose to be the width and the second number should be the height (800) but that can't be correct, unless they have put the spec back to front on their website?
I suspect that it should be in chrome tools 480 X 800 as that looks far more realistic. Would someone correct me here or point out if I'm missing something obvious?
Here is a picture of both devices configuration in Chrome:
And here is the other dimension (which is believe to be the wrong one!)
When I try to research this question or find out myself I keep being told the first dimension is the width which just doesn't look right.
And this is the picture is the device itself:
the first number represents the horizontally and the second one is for the vertically.
you can find out by dragging the responsive window and see which number changes.

Foundation 12-column grid resizing issue

I'm working with Foundation's 12-column grid and it is working as expected - I have the logo as a large-4 and medium-6 column, and then full 12 columns for small screen. Everything is great, except for when I rotate my iPhone to landscape orientation and the logo is then too big (tall) to fit in the screen, since it is still a "small" screen, so it takes up the entire width of the screen and thus is too big for the screen (since it is as tall as it is wide).
So my question is, what's the best way to fix this? If I use an orientation media query to make it smaller for landscape screens, then it is too small on a large landscape screen (such as a laptop or computer screen). Also if it is not the full 12 columns for the small screen size, then it is too small in portrait orientation on a mobile device.
Thanks.
(View full screen and resize or view on phone to see the problem.)
See CodePen here
<!---->
http://codepen.io/mrseanbaines/pen/dOdoEy
There's a couple ways you can address this... if you're going to have a bunch of things you think you'll want to customize for this you can add a custom breakpoint for that intermediate stage (see http://foundation.zurb.com/sites/docs/media-queries.html#sass-variables).
That said, if you just want to target this image in particular, it might well be sufficient to just put a max height on it, something like
#logo {
margin-bottom: 20px;
max-height: 50vh;
}

CSS parameter scaling based on screen size

Is there an automated way to scale height and width of elements defined in CSS based on screen sizes?
These days there are so many different screen sizes in the market, it is quite onerous to create separate CSS for each. Wondering if a same CSS can be used with an automatic scaling based on screen size. Say for example, the original CSS is built for 1200x800 screen size. If the page is opened on an screen half of this size, all css element in which height and width is defined in pixels, should automatically reduce to half. I understand it will not look good when the page is opened in a very small screen because everything will look tiny. However, the requirement basically is to automatically adjust the app screen to laptop, desktop and tablet screens.
For example, I have a div and inside that div there are 5 buttons (created using CSS). On smaller screens the button row wraps into two lines making it look very bad. This is just an example. Most other screen elements behave similarly.
As commented and approved by OP :
You have multiple approaches available, among them media-queries (million links around but here's one : http://css-tricks.com/logic-in-media-queries) and another one I like a lot, viewport units (see here for example : http://css-tricks.com/the-lengths-of-css Viewport Percentage Lengths). You are basically describing what is called Responsive Design (http://en.wikipedia.org/wiki/Responsive_web_design) --- Have Fun ^^
Maybe try this for responsive design without css 3 : http://responsejs.com
Media-queries are the way to go. As for the old browsers(IE <10), this is a great webpage with "polyfills" for those:
https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills

Mediawiki Images no resize

How can I force mediawiki to disable resizing and use the original size of my image? My main problem is that I'm uploading small parts of screenshots. If I don't use the original size then they look awful. (Imagine a 237px wide image resized to 400px....) But I don't see any option for that.
http://www.mediawiki.org/wiki/Help:Images#Size_and_frame
By simply using the image name, it will fit the image to screen which is really bad! For example, a 300px wide screenshot cutout looks awful on a full hd monitor... You could say that the image may be too large for the users' screen but in my particular case that is not the case. I'll always be using small images (300px and smaller) and the users will always watch these pages on desktop monitors.
I'm sorry I was very dump. If I don't use any option then it is displayed in its original size. I was mistaken because somebody has changed the zoom level of my browser, but I did not realize this because the monitor resolution was so high...

Website page squeezing affects text frame

Could someone help me out with a suggestion on this fixing the text frames on this wordpress website page http://www.blackcoatinnovations.com/#third
The formatting looks well if the browser is the right size but as soon as you make it smaller, the text frames and picture become squeezed.
It is interesting to note that if you squeeze it A LOT, then the text frames change orientation and go one above the other and this is what it looks like on a smartphone so if possible I don't want to destroy this mobile friendly feature. But is there a way to avoid that "in between" situation where the text frame is messed up?
This is because it's responsive and will adapt percentage wise to the available screen space. If you look at your Bootstrap css file here: http://www.blackcoatinnovations.com/wp-content/themes/BootstrapParallax/css/bootstrap-responsive.css, you can set where that responsive trigger should happen.
So you have there #media (min-width: 768px) and (max-width: 979px)
It mean until it reaches the width of 767 (one less than the min width), it's going to squeeze and then as soon as it reaches 767 - go to phone layout. If you set you min-width higher on this line and your max width higher on the next media query, you could get it to snap where you want it to.
There are other ways, but this would be a quick fix.

Resources