From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69760 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Changing the colors of a button Date: Tue, 5 Jul 2011 14:47:49 +0200 Message-ID: References: <8FA72397-77A1-46B2-8D95-6BD53604E014@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0271513817==" X-Trace: dough.gmane.org 1309870091 18108 80.91.229.12 (5 Jul 2011 12:48:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Jul 2011 12:48:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 05 14:48:07 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qe52t-0000It-0a for gctc-ntg-context-518@m.gmane.org; Tue, 05 Jul 2011 14:48:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BC5C2CADE4; Tue, 5 Jul 2011 14:48:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TrsbtTwJ694C; Tue, 5 Jul 2011 14:48:02 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 71CBFCADD4; Tue, 5 Jul 2011 14:48:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 73D28CADD4 for ; Tue, 5 Jul 2011 14:48:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 77fGhNdBNF7p for ; Tue, 5 Jul 2011 14:47:50 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id B095CCAC8D for ; Tue, 5 Jul 2011 14:47:50 +0200 (CEST) Original-Received: from mail-ew0-f41.google.com (mail-ew0-f41.google.com [209.85.215.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p65ClnqO004041 for ; Tue, 5 Jul 2011 14:47:50 +0200 Original-Received: by ewy9 with SMTP id 9so3221730ewy.14 for ; Tue, 05 Jul 2011 05:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=HeBHD80/anL6xPQyjqK6OVIB/vgVdVqNT9W0rBhqlxY=; b=qp74bnCPlszXGr+6j0/sGmLWKbUA6nn6aPc4DztvQjt9b4IjdAGugLdgobJSOa/7eA Pxgb+M1ZwPHI4MnqTcHpzUdRu51sAqXKLn9nut/i5DNoJkYGO5D85YfFJaWZ7o2lwhll GxNNsca6xTftZfCRCXB2NGU8V5zppamr14yhk= Original-Received: by 10.14.101.4 with SMTP id a4mr510697eeg.114.1309870069530; Tue, 05 Jul 2011 05:47:49 -0700 (PDT) Original-Received: by 10.14.47.3 with HTTP; Tue, 5 Jul 2011 05:47:49 -0700 (PDT) In-Reply-To: <8FA72397-77A1-46B2-8D95-6BD53604E014@googlemail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eF4cLNNR - 60d16e50363e - 20110705 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:69760 Archived-At: --===============0271513817== Content-Type: multipart/alternative; boundary=bcaec5396e4c32418804a751e4ba --bcaec5396e4c32418804a751e4ba Content-Type: text/plain; charset=ISO-8859-1 2011/7/5 Wolfgang Schuster > > I am trying the following: > > \button[backgroundcolor=darkgray,framecolor=black,framecorner=round]{Go > Back}[PreviousJump] > > > > The parameter framecolor works (I tried it with green). Framecorner works > also, but backgroundcolor not. How can I change the background and text > color of the button? > > ...,background=color,backgroundcolor=darkgray,color=,... > Works. I now have: \button[ background=color, backgroundcolor=darkgray, color=white, framecolor=black, framecorner=round, rulethickness=2pt] {Go Back} [PreviousJump] and this does what I want. One slight problem. The backgroundcolor is a rectangle en goes out of the rounded button. -- Cecil Westerhof --bcaec5396e4c32418804a751e4ba Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2011/7/5 Wolfgang Schuster <= ;schuster.wolfgang@goog= lemail.com>
> I am trying the following:
> =A0 \button[backgroundcolor=3Ddarkgray,framecolor=3Dblack,framecorner= =3Dround]{Go Back}[PreviousJump]
>
> The parameter framecolor works (I tried it with green). Framecorner wo= rks also, but backgroundcolor not. How can I change the background and text= color of the button?

...,background=3Dcolor,backgroundcolor=3Ddarkgray,color=3D<NAME>= ;,...

Works. I now have:
=A0 \button[
=A0=A0= =A0 background=3Dcolor,
=A0=A0=A0 backgroundcolor=3Ddarkgray,
=A0=A0= =A0 color=3Dwhite,
=A0=A0=A0 framecolor=3Dblack,
=A0=A0=A0 framecorner=3Dround,
=A0=A0=A0 rulethickness=3D2pt]
=A0=A0= =A0 {Go Back}
=A0=A0=A0 [PreviousJump]

and this does what I want.=

One slight problem. The backgroundcolor is a rectangle en goes out = of the rounded button.

--
Cecil Westerhof
--bcaec5396e4c32418804a751e4ba-- --===============0271513817== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0271513817==--