Mercurial Hosting > reactionary
comparison src/laf.html.luan @ 81:a990d216add8
laf
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 14 Apr 2025 16:24:08 -0600 |
parents | src/java_fork.html.luan@cef5b6a8b011 |
children | d990b7aa68b4 |
comparison
equal
deleted
inserted
replaced
80:cef5b6a8b011 | 81:a990d216add8 |
---|---|
1 local Luan = require "luan:Luan.luan" | |
2 local error = Luan.error | |
3 local Io = require "luan:Io.luan" | |
4 local Http = require "luan:http/Http.luan" | |
5 local Shared = require "site:/lib/Shared.luan" | |
6 local head = Shared.head or error() | |
7 local needed_header = Shared.needed_header or error() | |
8 | |
9 | |
10 return function() | |
11 Io.stdout = Http.response.text_writer() | |
12 %> | |
13 <!doctype html> | |
14 <html> | |
15 <head> | |
16 <% head() %> | |
17 <title>Reactionary Software - Swing Look and Feel</title> | |
18 <style> | |
19 li { | |
20 margin-top: 8px; | |
21 } | |
22 </style> | |
23 </head> | |
24 <body> | |
25 <% needed_header() %> | |
26 <div content> | |
27 <h1>Swing Look and Feel</h1> | |
28 | |
29 <p>All existing <a href="https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/">Swing Look and Feels</a> are horrible. A good look and feel would:</p> | |
30 | |
31 <ul> | |
32 <li>Have no white space around components. The layout manager should handle this.</li> | |
33 <li>Support <code>apple.laf.useScreenMenuBar</code>.</li> | |
34 <li>When a text component loses focus, the selection should not disappear and the cursor should just stop blinking.</li> | |
35 <li>Have a good reactionary (non-flat) aesthetic.</li> | |
36 </ul> | |
37 | |
38 <p>You can read about my struggles with look and feels in this <a href="https://chatgpt.com/share/67fd89eb-872c-8013-ae98-653c99b9bc3c">ChatGPT thread</a>. A reactionary look and feel is badly needed.</p> | |
39 </div> | |
40 </body> | |
41 </html> | |
42 <% | |
43 end |