⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 290133 in webkit


Ignore:
Timestamp:
Feb 18, 2022, 9:32:52 AM (5 years ago)
Author:
Peng Liu
Message:

[iOS][Modern Media Controls] Add an alternative overflow icon
​https://bugs.webkit.org/show_bug.cgi?id=236729

Reviewed by Devin Rousso.

Add a new overflow icon. By default, the media controls will use the
original overflow icon. So this patch does not change the appearance of
the media controls.

  • Modules/modern-media-controls/controls/icon-service.js:
  • Modules/modern-media-controls/controls/layout-traits.js:

(LayoutTraits.prototype.overflowButtonHasCircle):

  • Modules/modern-media-controls/controls/overflow-button.js:

(OverflowButton):

  • Modules/modern-media-controls/images/iOS/OverflowCircle.svg: Added.
Location:
trunk/Source/WebCore
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r290132 r290133  
     12022-02-18  Peng Liu  <peng.liu6@apple.com>
     2
     3        [iOS][Modern Media Controls] Add an alternative overflow icon
     4        https://bugs.webkit.org/show_bug.cgi?id=236729
     5
     6        Reviewed by Devin Rousso.
     7
     8        Add a new overflow icon. By default, the media controls will use the
     9        original overflow icon. So this patch does not change the appearance of
     10        the media controls.
     11
     12        * Modules/modern-media-controls/controls/icon-service.js:
     13        * Modules/modern-media-controls/controls/layout-traits.js:
     14        (LayoutTraits.prototype.overflowButtonHasCircle):
     15        * Modules/modern-media-controls/controls/overflow-button.js:
     16        (OverflowButton):
     17        * Modules/modern-media-controls/images/iOS/OverflowCircle.svg: Added.
     18
    1192022-02-18  Xabier Rodriguez Calvar  <calvaris@igalia.com>
    220
  • trunk/Source/WebCore/Modules/modern-media-controls/controls/icon-service.js

    r283064 r290133  
    3636    InvalidPlacard  : { name: "invalid-placard", type: "png", label: UIString("Invalid") },
    3737    Overflow        : { name: "Overflow", type: "svg", label: UIString("More\u2026") },
     38    OverflowCircle  : { name: "OverflowCircle", type: "svg", label: UIString("More\u2026") },
    3839    Pause           : { name: "Pause", type: "svg", label: UIString("Pause") },
    3940    PiPPlacard      : { name: "pip-placard", type: "png", label: UIString("Picture in Picture") },
  • trunk/Source/WebCore/Modules/modern-media-controls/controls/layout-traits.js

    r280534 r290133  
    9292    }
    9393
     94    overflowButtonHasCircle()
     95    {
     96        return false;
     97    }
     98
    9499    additionalControlScaleFactor()
    95100    {
  • trunk/Source/WebCore/Modules/modern-media-controls/controls/overflow-button.js

    r273004 r290133  
    3131        super({
    3232            cssClassName: "overflow",
    33             iconName: Icons.Overflow,
     33            iconName: layoutDelegate?.layoutTraits?.overflowButtonHasCircle() ? Icons.OverflowCircle : Icons.Overflow,
    3434            layoutDelegate,
    3535        });
Note: See TracChangeset for help on using the changeset viewer.