TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Golden ratio in GUI design

6 pointsby paulreinersover 15 years ago
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

shaunxcodeover 15 years ago
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 未加载