Results 1 to 5 of 5

Thread: Improving Triton theme font-weight: 300 being light on projectors?

  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Omaha, NE
    Posts
    631
    Answers
    10

    Default Answered: Improving Triton theme font-weight: 300 being light on projectors?

    Our custom theme extends Triton and the 300 and 400 font weights look fine on desktops but the 300 font is light and pixelated when connected to a projector. Anyone have suggestions on how to make the 300 weight bolder when doing a demo using a projector?

    I changed the zoom to 125% which helped but then the app looks big and screen real estate is lost.

    I tried adding 'font-weight: 400 !important' to body and x-body but grids, labels, etc. still render as 300.

    I could make a theme just for projector presentations but that adds to build times and more files.

    Is there a Chrome extension that will just make fonts bolder without changing the size of everything else? I can't find one. Any other suggestions?

  2. Ended up being simple once I figured out the selector - here is my GSP code. All I need to do is put ?projector on the query string and it works.

    Code:
    <g:if test="${params.projector != null}">
        <style type="text/css">
        body * {
            font-weight: 400 !important;
        }
        </style>
    </g:if>

  3. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448
    Answers
    3997

    Default

    Have you tried using the $font-weight (and $font-weight-bold) or individual vars (like $form-label-font-weight) to change the weight?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  4. #3
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Omaha, NE
    Posts
    631
    Answers
    10

    Default

    I could make a separate theme changing to these values but I would prefer to be able to do it at run time instead of build time.

    Code:
    $font-weight: dynamic(400);
    $font-weight-bold: dynamic(600);
    My first thought was to add ?projector to the query string and have the code add a x-projector class to the body but trying font-weight: 400 !important on the body in dev tools didn't change grids, labels, etc. I could have the x-project class override everywhere needed but then that would be tricky tracking down each class needed to do that.

  5. #4
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Omaha, NE
    Posts
    631
    Answers
    10

    Default

    Looks like I need the * as this worked in dev tools. Now I'm going to try and implement it into my code.

    Code:
    body * {
        font-weight: 400;
    }

  6. #5
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Omaha, NE
    Posts
    631
    Answers
    10

    Default

    Ended up being simple once I figured out the selector - here is my GSP code. All I need to do is put ?projector on the query string and it works.

    Code:
    <g:if test="${params.projector != null}">
        <style type="text/css">
        body * {
            font-weight: 400 !important;
        }
        </style>
    </g:if>

Similar Threads

  1. Replies: 2
    Last Post: 21 Apr 2013, 10:41 PM
  2. Replies: 4
    Last Post: 3 May 2012, 7:52 PM
  3. Light Weight charts
    By anshumap in forum Ext GWT: Discussion
    Replies: 14
    Last Post: 10 Nov 2010, 7:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •