Skip to content

2FA settings icons don’t invert in dark theme #13643

Closed

Description

@jancborchardt

With the dark theme, 2FA settings look like this:
dark theme 2fa icons

That’s because they are loaded in the <img> tag. Ideally it should be changed to use a class on the header like icon-… so it’s used as background-image.

Documentation on that at: https://docs.nextcloud.com/server/latest/developer_manual/design/css.html#scss-icons-mixins

Activity

  1. added
    1. to develop
    on Jan 17, 2019
  2. removed their assignment
    on Jan 28, 2019
  3. added
    good first issue
    design
    on Jan 28, 2019
  4. nickvergessen commented on Feb 11, 2019

    @nickvergessen
    Member

    Code in question

    /** @var \OCP\Authentication\TwoFactorAuth\IProvidesPersonalSettings $provider */
    $provider = $data['provider'];
    if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) {
    $icon = $provider->getDarkIcon();
    } else {
    $icon = image_path('core', 'actions/password.svg');
    }

  5. added a commit that references this issue on Jun 28, 2019
    372478a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developbugdesignfeature: settingsgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions