[GNC] Change text color

Peter Jackson jackson at fastmail.net
Wed Aug 8 12:40:19 EDT 2018


Thanks Adrien, perfect.
Regards
pj

On 8 August 2018 at 17:31, Adrien Monteleone <adrien.monteleone at lusfiber.net
> wrote:

> Correction,
>
> tabs label {
>   margin-left: -3em;
> }
>
> will shift the label and thus then entire tab to the left enough to cover
> the invisible image. (you can alter the margin to suit of course)
>
> Also notice I use ’tabs’ here instead of ’notebook’.
>
> They are interchangeable but I like ’tabs’ better because it makes the CSS
> self-documenting.
>
> So the previous rule would be:
>
> tabs box > image {
>  opacity: 0;
> }
>
> (and you can drop the .GncMainWindow class as it’s superfluous)
>
> Regards,
> Adrien
>
> > On Aug 8, 2018, at 11:08 AM, Adrien Monteleone <
> adrien.monteleone at lusfiber.net> wrote:
> >
> > Peter,
> >
> > If you mean the icon which indicates if the tab is an account, report,
> et cetera, then try this:
> >
> > .GncMainWindow notebook box > image {
> >  opacity: 0;
> > }
> >
> > Is the best I can muster.
> >
> > The ‘display’ property is not exposed in Gtk it seems. (or else
> ‘display: none’ would work)
> >
> > There is a ‘visible’ property in the inspector which I can toggle there,
> but it isn’t exposed in CSS either. (likely would tie to ‘display’)
> >
> > If you don’t include the ‘>’ child selector, you’ll also make the close
> icon on the tab disappear, but it still might function.
> >
> > The above rule doesn’t reclaim the blank space, however.
> >
> > Regards,
> > Adrien
> >
> >> On Aug 8, 2018, at 3:59 AM, Peter Jackson <jackson at fastmail.net> wrote:
> >>
> >> On each Notebook Tab, to the left of the Account Name, is an irritating
> little icon. Any idea how to remove it?
> >> pj
> >>
> >>
> >> On 8 August 2018 at 07:10, Peter Jackson <jackson at fastmail.net> wrote:
> >> Adrien, well done. It all works on mine.
> >> Thanks
> >> Peter
> >>
> >>
> >> On 7 August 2018 at 23:10, Adrien Monteleone <
> adrien.monteleone at lusfiber.net> wrote:
> >> Here are some rather garish colors to see what controls what:
> >>
> >> /* button’s container - ‘behind’ and ‘around’ it */
> >> .GncAccountPage { background-color: red;}
> >>
> >> /* another layer of a container for the button  - exposed only left and
> right sides */
> >> .summary-bar { background-color: yellow;}
> >>
> >> /* the button - note you need to override background-image and/or the
> border */
> >> .combo {
> >>  background-color: green;
> >>  color: orange;
> >>  background-image: none;
> >>  border: 5px solid purple;
> >> }
> >>
> >> /* the text on the button */
> >> .summary-bar cellview {
> >> font-size: 2em;
> >> }
> >>
> >> Regards,
> >> Adrien
> >>
> >> p.s.—I’m off to drink homebrew—till next time...
> >>
> >>> On Aug 7, 2018, at 4:24 PM, GT-I9070 H <gti9070h at gmail.com> wrote:
> >>>
> >>> Adrien, Any idea?
> >>>
> >>>
> >>> Regards
> >>> GTI
> >>>
> >>> Em ter, 7 de ago de 2018 às 15:58, GT-I9070 H <gti9070h at gmail.com>
> escreveu:
> >>> Em ter, 7 de ago de 2018 às 14:40, Adrien Monteleone <
> adrien.monteleone at lusfiber.net> escreveu:
> >>> .GncAccountPage should be the area ‘behind’ the summary bar and
> extends past it a bit as well - it is the container that holds the summary
> bar which is slightly smaller. .summary-bar, being a child element, might
> inherit properties that you set here.
> >>>
> >>> .summary-bar has child labels.  In some cases, the color property
> (which is the foreground, or text color) can be applied to a parent element
> that itself doesn’t contain text and it still gets inherited by the
> children and other descendants—sometimes, not. The font-size and color
> properties *should* however work on ‘.summary-bar label’. Check earlier
> messages in the thread where we first went over the .summary-bar. One of my
> replies should have the specific selector for the label.
> >>>
> >>> So you would have:
> >>>
> >>> /* area-container of summary bar */
> >>>
> >>> .GncAccountPage {}
> >>>
> >>> /* summary bar itself */
> >>>
> >>> .summary-bar {}
> >>>
> >>> /* labels on the summary bar */
> >>>
> >>> .summary-bar label {}
> >>>
> >>>
> >>> Regards,
> >>> Adrien
> >>>
> >>> I had already tested this for a long time and none of this worked for
> me.
> >>>
> >>> Peter,
> >>> Did it work for you?
> >>>
> >>> Regards
> >>> GTI
> >>
> >> _______________________________________________
> >> gnucash-user mailing list
> >> gnucash-user at gnucash.org
> >> To update your subscription preferences or to unsubscribe:
> >> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> >> If you are using Nabble or Gmane, please see
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> >> -----
> >> Please remember to CC this list on all your replies.
> >> You can do this by using Reply-To-List or Reply-All.
> >>
> >>
> >
>
>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.


More information about the gnucash-user mailing list