Changeset 181178 in webkit


Ignore:
Timestamp:
Mar 6, 2015, 1:29:29 PM (10 years ago)
Author:
roger_fong@apple.com
Message:

Reskin Captions button and container on OSX.
https://bugs.webkit.org/show_bug.cgi?id=142383.
<rdar://problem/20061466>
Reviewed by Eric Carlson.

  • Modules/mediacontrols/mediaControlsApple.css:

(audio::-webkit-media-controls-toggle-closed-captions-button): Create new captions button icon.
Update caption container to match rest of media controls better.
(audio::-webkit-media-controls-closed-captions-container):
(audio::-webkit-media-controls-closed-captions-container .list):
(audio::-webkit-media-controls-closed-captions-container h3):
(audio::-webkit-media-controls-closed-captions-container ul):
(audio::-webkit-media-controls-closed-captions-container li):
(audio::-webkit-media-controls-closed-captions-container li:focus):
(audio::-webkit-media-controls-closed-captions-container li:hover):
Fix up some fonts to make fonts between captions, status display and time displays consistent.
(audio::-webkit-media-controls-status-display):
(audio::-webkit-media-controls-time-remaining-display):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r181174 r181178  
     12015-03-05  Roger Fong  <roger_fong@apple.com>
     2
     3        Reskin Captions button and container on OSX.
     4        https://bugs.webkit.org/show_bug.cgi?id=142383.
     5        <rdar://problem/20061466>
     6
     7        Reviewed by Eric Carlson.
     8
     9        * Modules/mediacontrols/mediaControlsApple.css:
     10        (audio::-webkit-media-controls-toggle-closed-captions-button): Create new captions button icon.
     11        Update caption container to match rest of media controls better.
     12        (audio::-webkit-media-controls-closed-captions-container):
     13        (audio::-webkit-media-controls-closed-captions-container .list):
     14        (audio::-webkit-media-controls-closed-captions-container h3):
     15        (audio::-webkit-media-controls-closed-captions-container ul):
     16        (audio::-webkit-media-controls-closed-captions-container li):
     17        (audio::-webkit-media-controls-closed-captions-container li:focus):
     18        (audio::-webkit-media-controls-closed-captions-container li:hover):
     19        Fix up some fonts to make fonts between captions, status display and time displays consistent.
     20        (audio::-webkit-media-controls-status-display):
     21        (audio::-webkit-media-controls-time-remaining-display):
     22
    1232015-03-06  Jer Noble  <jer.noble@apple.com>
    224
  • trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css

    r181122 r181178  
    230230video::-webkit-media-controls-toggle-closed-captions-button,
    231231audio::-webkit-media-controls-toggle-closed-captions-button {
    232     width: 15px;
     232    width: 16px;
    233233    margin-right: 16px;
    234     background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 102 105" fill="white"><path d="M98.766,43.224c0-23.163-21.775-41.94-48.637-41.94c-26.859,0-48.635,18.777-48.635,41.94c0,18.266,13.546,33.796,32.444,39.549c1.131,8.356,26.037,24.255,22.864,19.921c-4.462-6.096-5.159-13.183-5.07-17.566C77.85,84.397,98.766,65.923,98.766,43.224z" fill="url(#gradient)"/></svg>');
     234    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 15"  stroke="white"><defs> <clipPath id="cut-hole"><rect x="0" y="0" width="16" height="10"/><rect x="0" y="10" width="9" height="1"/><rect x="11" y="10" width="5" height="1"/></clipPath></defs> <rect x="0.5" y="0.5" rx="1" ry="1" width="15" height="10" clip-path="url(#cut-hole)"/><path d="M 2,5.5 h 4"/><path d="M 7,5.5 h 7"/><path d="M 3,7.5 h 2"/><path d="M 6,7.5 h 3"/><path d="M 10,7.5 h 3"/><path d="M 8.5,10.5 L 8.5,12.75 L 11,10"/></svg>');
    235235    outline: 0;
    236236}
     
    247247    overflow-x: hidden;
    248248    overflow-y: scroll;
    249     background-color: rgba(0, 0, 0, 0.85);
    250     border: 3px solid rgba(128, 128, 128, 0.75);
    251     border-radius: 10px;
     249    background-color: rgba(0, 0, 0, 0.8);
     250    border: 1px solid rgba(128, 128, 128, 0.75);
     251    border-radius: 6px;
    252252    cursor: default;
    253253    z-index: 2;
     
    258258audio::-webkit-media-controls-closed-captions-container .list {
    259259    display: block;
    260     font-family: "Helvetica Bold", Helvetica, sans-serif;
    261     font-size: 10pt;
     260    font-family: "Helvetica Neue", Helvetica, sans-serif;
     261    font-size: 11px;
    262262    -webkit-user-select: none;
    263263}
     
    266266audio::-webkit-media-controls-closed-captions-container h3 {
    267267    margin: 0;
    268     color: rgb(117, 117, 117);
     268    color: rgb(140, 140, 140);
    269269    text-shadow: 0 1px 0 black;
    270     -webkit-margin-start: 23px;
     270    -webkit-margin-start: 16px;
    271271    padding-top: 4px;
    272     font-weight: bold;
    273     font-size: 10pt;
     272    font-size: 11px;
    274273}
    275274
     
    277276audio::-webkit-media-controls-closed-captions-container ul {
    278277    list-style-type: none;
    279     margin: 0 0 4px 0;
     278    margin: 0 0 8px 0;
    280279    padding: 0;
    281     font-weight: bold;
    282280}
    283281
     
    289287    text-shadow: 0 1px 0 black;
    290288    margin: 0;
    291     padding-left: 37px;
    292     padding-right: 35px;
     289    padding-left: 28px;
     290    padding-right: 28px;
    293291    padding-top: 0.15em;
    294292    padding-bottom: 0.2em;
     
    304302audio::-webkit-media-controls-closed-captions-container li:focus {
    305303    outline: 0;
    306     background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(255, 255, 255, 0.3)), color-stop(1, rgba(255, 255, 255, 0.2)));
     304    background-color: rgba(140, 140, 140, .5);
    307305}
    308306
    309307video::-webkit-media-controls-closed-captions-container li:hover,
    310308audio::-webkit-media-controls-closed-captions-container li:hover {
    311     background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(79, 112, 246)), color-stop(1, rgb(26, 68, 243)));
    312     border-top: 1px solid rgb(70, 103, 234);
    313     border-bottom: 1px solid rgb(3, 54, 229);
     309    background-color: rgba(26, 68, 243, 0.6);
    314310}
    315311
     
    354350audio::-webkit-media-controls-status-display {
    355351    cursor: default;
    356     font: -webkit-small-control;
    357     font-size: 9px;
     352    font-family: "Helvetica Neue", Helvetica, sans-serif;
     353    font-size: 11px;
    358354    overflow: hidden;
    359355    color: white;
     
    400396    overflow-y: hidden;
    401397    overflow-x: hidden;
    402     font-family: 'Helvetica Neue';
     398    font-family: "Helvetica Neue", Helvetica, sans-serif;
    403399    font-size: 11px;
    404400    color: white;
Note: See TracChangeset for help on using the changeset viewer.