Set background color of the uifigure window title bar

18 ビュー (過去 30 日間)
val
val 2021 年 11 月 16 日
コメント済み: Adam Danz 2021 年 11 月 16 日
Trying to build a dark themed app with uifigure on Mac (Mac has global dark theme activated, which is unfortunately ignored by Matlab and its apps).
The main window title bar is white (even if i use f.Color = '#121212'). Is there a way to change its color? Via Java?
Not sure if it's worth at all to fight UI components to run on a dark background...the dropdown and all. But it seems that people succeded to have axes on a dark background.
f = uifigure;
f.Name = 'my App';
gl = uigridlayout(f,[2 2]);
gl.BackgroundColor = '#121212';
  1 件のコメント
Adam Danz
Adam Danz 2021 年 11 月 16 日
There are ways to customize the figure window but it's not worth the headache IMO

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop uifigure-Based Apps についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by