# Mac Border Colors

**URL:** <https://forum.xojo.com/t/mac-border-colors/87726>\
**Category:** macOS\
**Created:** [February 19, 2026, 5:58pm UTC](https://forum.xojo.com/t/mac-border-colors/87726 "2026-02-19T17:58:45Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeffery\_Lemons](https://forum.xojo.com/user_avatar/forum.xojo.com/jeffery_lemons/32/1447_2.png) [@Jeffery\_Lemons](https://forum.xojo.com/u/Jeffery_Lemons)\
**Post date:** [February 19, 2026, 5:58pm UTC](https://forum.xojo.com/t/mac-border-colors/87726/1 "2026-02-19T17:58:45Z")

</div>

Border colors for text areas and text fields (and other things) are really light grey and make it harder for an older person to see where to click. There is no setting for border colors of the text area and text fields. Is there any way I can adjust the border colors in the program without having to edit Mac settings? TIA

---

<div class="post-metadata">

**Author:** ![Jared\_Feder](https://forum.xojo.com/user_avatar/forum.xojo.com/jared_feder/32/3036_2.png) [@Jared\_Feder](https://forum.xojo.com/u/Jared_Feder)\
**Post date:** [February 19, 2026, 8:18pm UTC](https://forum.xojo.com/t/mac-border-colors/87726/2 "2026-02-19T20:18:24Z")

</div>

You could use the window paint event and draw your own borders around them.

---

<div class="post-metadata">

**Author:** ![Jeffery\_Lemons](https://forum.xojo.com/user_avatar/forum.xojo.com/jeffery_lemons/32/1447_2.png) [@Jeffery\_Lemons](https://forum.xojo.com/u/Jeffery_Lemons)\
**Post date:** [February 20, 2026, 4:26pm UTC](https://forum.xojo.com/t/mac-border-colors/87726/4 "2026-02-20T16:26:53Z")

</div>

Tried this but it’s horrible. The original borders are there even if I set .hasborder to false. It doesn’t round with some of the fields. It looks very bad. Anyone else have a solution?

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 21, 2026, 6:44pm UTC](https://forum.xojo.com/t/mac-border-colors/87726/5 "2026-02-21T18:44:36Z")

</div>

I tend to place controls on dialog boxes within a group box. That way the difference between the background and the text box is somewhat easier to see. For example:

 ![Screenshot 2026-02-21 at 18.41.16](https://forum.xojo.com/uploads/default/original/3X/f/0/f00e9d211ea989cb007d7af760e6e6d1f7c053d8.jpeg) ![Screenshot 2026-02-21 at 18.41.55](https://forum.xojo.com/uploads/default/original/3X/2/b/2b84b67832bd0578e66078c69aa0a98ea65fd1d3.jpeg)

Would that perhaps solve your problem, without borders?

You can also have a GroupBox without a label at the top, just leave the caption blank.

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 21, 2026, 7:47pm UTC](https://forum.xojo.com/t/mac-border-colors/87726/6 "2026-02-21T19:47:50Z")

</div>

Apple use the same technique in System preferences, the Print dialog and the Page setup dialog.

---

<div class="post-metadata">

**Author:** ![Eric\_Williams](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/ecccb3/32.png) [@Eric\_Williams](https://forum.xojo.com/u/Eric_Williams)\
**Post date:** [February 21, 2026, 9:52pm UTC](https://forum.xojo.com/t/mac-border-colors/87726/7 "2026-02-21T21:52:18Z")

</div>

For those who need it, the Mac’s Accessibility settings have a High Contest setting which enhances borders around controls and makes other changes to colors. This would be the appropriate approach, as it applies system-wide and gives your app the same appearance as other apps.

---

<div class="post-metadata">

**Author:** ![Jeffery\_Lemons](https://forum.xojo.com/user_avatar/forum.xojo.com/jeffery_lemons/32/1447_2.png) [@Jeffery\_Lemons](https://forum.xojo.com/u/Jeffery_Lemons)\
**Post date:** [February 23, 2026, 6:32pm UTC](https://forum.xojo.com/t/mac-border-colors/87726/8 "2026-02-23T18:32:25Z")

</div>

Yeah thats not a good approach at all. I tried it and it’s horrible and makes my program horrible looking. I don’t want black lines around everything. I just want the borders in my program better defined.

---

<div class="post-metadata">

**Author:** ![Jeffery\_Lemons](https://forum.xojo.com/user_avatar/forum.xojo.com/jeffery_lemons/32/1447_2.png) [@Jeffery\_Lemons](https://forum.xojo.com/u/Jeffery_Lemons)\
**Post date:** [February 23, 2026, 6:33pm UTC](https://forum.xojo.com/t/mac-border-colors/87726/9 "2026-02-23T18:33:44Z")

</div>

Yeah this is what im considering if it can’t be done with just changing the border. It does take up more space and some of our windows are already crowded and won’t have the space to allocate to a group box or a background rectangle.

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 23, 2026, 6:57pm UTC](https://forum.xojo.com/t/mac-border-colors/87726/10 "2026-02-23T18:57:28Z")

</div>

Another trick, and quite simple to achieve, is to place a Canvas on the window:

- Locate it at 0, 0
- Fill the whole window with it.
- Sent it to the back of the z-order.
- Turn on lock for top, left, bottom and right, so it grows with the window
- Make sure that your controls are parented to the Canvas.

If there is only one window that need fixing add a Shared property to the window:

```xojo
WindowBGColor as ColorGroup 

```

In the window Opening event. add:

```xojo
If WindowBGColor = Nil Then
  WindowBGColor = New ColorGroup( &cE7E7E700, &c25252500 )
End If

```

In the canvas paint event:

```xojo
g.DrawingColor = WindowBGColor
g.FillRectangle 0, 0, g.Width, g.Height

```

This provides:

- A background that allows you to see the controls.
- Takes 0 space on the window, so is easy to do.
- Works with Dark and Light mode.

If you need to do it for more than one window move the Shared property and Opening elements to the App object or a Global module.

Using a shared property prevents multiple instances of it from being created each time you have a new instance of the window. Putting it on App also provides a single global instance. Shared properties on App are also much faster to access than standard ones.

Example:

 ![Screenshot 2026-02-23 at 19.16.51](https://forum.xojo.com/uploads/default/original/3X/8/0/80c76133d9b953cb20d9b305d63ef994f01f0dad.png)Trying to set the window background colour will fail as it is ignored by later versions of macOS.

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [February 24, 2026, 3:04am UTC](https://forum.xojo.com/t/mac-border-colors/87726/11 "2026-02-24T03:04:16Z")

</div>

> [@Ian\_Kennedy](#):
>
> Another trick, and quite simple to achieve, is to place a Canvas on the window:

Window and container have a paint event. In most cases there is no need for a canvas. All my windows have a common background color. In Tahoe this makes a way better contrast.

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 24, 2026, 3:20am UTC](https://forum.xojo.com/t/mac-border-colors/87726/12 "2026-02-24T03:20:55Z")

</div>

Tahoe ignores window background colour on sheet windows. Even when set in the IDE it ends up ‘white’. I haven’t tried drawing in the window paint, I must admit.

Yup, Window paint does work. Setting a background colour in the IDE does for standalone windows, but not for Sheet windows, but Window paint does.

---

<div class="post-metadata">

**Author:** ![Jeffery\_Lemons](https://forum.xojo.com/user_avatar/forum.xojo.com/jeffery_lemons/32/1447_2.png) [@Jeffery\_Lemons](https://forum.xojo.com/u/Jeffery_Lemons)\
**Post date:** [February 25, 2026, 4:40pm UTC](https://forum.xojo.com/t/mac-border-colors/87726/13 "2026-02-25T16:40:52Z")

</div>

Thanks for the help. This is awesome!

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [February 25, 2026, 4:54pm UTC](https://forum.xojo.com/t/mac-border-colors/87726/14 "2026-02-25T16:54:48Z")

</div>

As Beatrix pointed out, you can do without the canvas by using the Window paint event. Which is easier.

---

<div class="post-metadata">

**Author:** ![James\_Wagner](https://forum.xojo.com/user_avatar/forum.xojo.com/james_wagner/32/822_2.png) [@James\_Wagner](https://forum.xojo.com/u/James_Wagner)\
**Post date:** [February 26, 2026, 4:47am UTC](https://forum.xojo.com/t/mac-border-colors/87726/15 "2026-02-26T04:47:49Z")

</div>

Really appreciate some thought given to the problem with so many apps using such low contrast coloring. That and tiny thin fonts!!! Pretty sure I would have hated this style at age 25 and now, 60 years later, my eyes have not gotten better!

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [February 26, 2026, 5:44am UTC](https://forum.xojo.com/t/mac-border-colors/87726/16 "2026-02-26T05:44:10Z")

</div>

> [@James\_Wagner](#):
>
> my eyes have not gotten better!

Hi James,

unfortunately, you are not alone.
