TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Golden ratio in GUI design

6 点作者 paulreiners超过 15 年前
Does anyone else try to use the golden ratio in their GUI components? I've been doing this for awhile now and it does make them look better, I think.<p><pre><code> final double goldenRatio = 1.61803399; dialog.setSize( DIALOG_WIDTH, (int) Math.round(DIALOG_WIDTH / goldenRatio));</code></pre>

1 comment

shaunxcode超过 15 年前
I am not sure I understand - wouldn't you want to be working with the DIALOG_HEIGHT in relation to the DIALOG_WIDTH?
评论 #1004016 未加载
评论 #1002391 未加载