[SOLVED] How to set panel theme


#1

I have set panel to be dark

<div class=“panel panel-right panel-cover theme-dark”>

but it still white color.

Thanks


#2

Use code:

<html class="theme-dark">
    ...
</html>

More info - https://framework7.io/docs/color-themes.html


#3

did not work. Panel still white.


#4

У вас где-то ошибка. В kitchen добавьте класс theme-dark к panel и она станет темной.


#5

theme-dark works for page and other elements like list, but not for panel.


#6

Запустите kitchen в Chrome, нажмите F12 и просто добавьте класс к panel и вуаля, панель станет темной. Поэтому ошибка где-то у вас.


#7

Yes, it work there, But not here
http://framework7.io/docs-demos/core/panel.html
and I don’t know what error can be.


#8

i include 2 div’s inside in panel
<div class=“view view-init view-right” name=“right” data-url="/">

<div class=“page page-current”>

and it works now.
Thanks shastox


#9

View создавать необязательно