Return-Path: Delivered-To: apmail-pivot-dev-archive@www.apache.org Received: (qmail 87657 invoked from network); 3 Aug 2010 12:31:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Aug 2010 12:31:03 -0000 Received: (qmail 96110 invoked by uid 500); 3 Aug 2010 12:31:03 -0000 Delivered-To: apmail-pivot-dev-archive@pivot.apache.org Received: (qmail 96039 invoked by uid 500); 3 Aug 2010 12:31:02 -0000 Mailing-List: contact dev-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pivot.apache.org Delivered-To: mailing list dev@pivot.apache.org Received: (qmail 96024 invoked by uid 99); 3 Aug 2010 12:31:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Aug 2010 12:31:01 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gkbrown@mac.com designates 17.148.16.100 as permitted sender) Received: from [17.148.16.100] (HELO asmtpout025.mac.com) (17.148.16.100) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Aug 2010 12:30:53 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from [192.168.1.10] (pool-98-110-173-176.bstnma.fios.verizon.net [98.110.173.176]) by asmtp025.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L6K002GITEKAS30@asmtp025.mac.com>; Tue, 03 Aug 2010 05:30:22 -0700 (PDT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1004200000 definitions=main-1008030051 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.0.10011,1.0.148,0.0.0000 definitions=2010-08-03_04:2010-08-03,2010-08-03,1970-01-01 signatures=0 Subject: Re: [RFC] Swing interop features From: Greg Brown In-reply-to: Date: Tue, 03 Aug 2010 08:30:20 -0400 Cc: dev@pivot.apache.org Message-id: <43D4799F-731A-454B-9813-99B32E5EC3E2@mac.com> References: <4C56CA1A.3030303@gmail.com> <5F7B6359-2C77-42E0-B954-9C9DAEC9C26C@mac.com> <4C56D1A5.6080008@gmail.com> To: user@pivot.apache.org X-Mailer: Apple Mail (2.1078) > A crazy idea: and try to use existing Swing components with Pivot > wrappers (Scala Swing seems to do something like this ... Ok, complex > but powerful, and with the benefit to have the original L&F) ... That's certainly possible too. A Pivot theme could (theoretically) be created that uses Swing UI delegates under the hood. > my fear is to try to implement something that will be complex to > mantain (L&F fidelity with Swing) and that could not port too much > users to Pivot ... but here none has the answer ... Again, the idea would be to simply delegate to the existing Terra skin classes, so there shouldn't be much to maintain once the general approach is established. > And to finish only few small things: > - to solve font problems as seen by Noel, what do you think on adding > to the Skin json definition file (containing skin colors and other > settings) also a list of alternate fonts/dimensions to use (and maybe > also a way to specify "use native font and dimension") ? I'm already > working on this for other features for the 2.0. I think the alternate font list makes sense. I'm not sure about trying to match the native font. Like Flex and Silverlight (as well as JavaFX), Pivot defines its own (cross-platform) look and feel. It doesn't attempt to emulate or match the native L&F because there are too many other issues with that approach. > - to improve a Swing-like L&F, what do you think on a new Terra's > theme json configuration file containing Swing colors (and fonts, etc) > ? Simple to do and could give a similar appearance ... and also this > for the 2.0. That is not a bad idea. Actually, I am wondering if it might be possible to create a sort of "adaptive" version of Terra that could dynamically generate its color palette from the current Swing default L&F...