请选择 进入手机版 | 继续访问电脑版

『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 2793|回复: 3

没事做了一个灯的遥控器界面,希望有大佬可以帮忙润色...

[复制链接]

47

主题

702

帖子

4460

积分

元老级技术达人

积分
4460
金钱
3758
HASS币
50
QQ
发表于 2019-10-1 22:00:32 | 显示全部楼层 |阅读模式
  界面是这样的,方形的不好看希望有大佬可以帮忙润色润色,加个框啊,圆个角啊啥的
Snipaste_2019-10-01_21-58-47.png

Lovelace   card代码

cards:
  - color: 'rgb(127, 255, 0)'
    color_type: card
    name: 吸顶灯
    styles:
      card:
        - height: 40px
    type: 'custom:button-card'
  - cards:
      - cards:
          - color: 'rgb(223, 150, 97)'
            color_type: card
            entity: switch.light_power
            icon: 'mdi:power'
            show_icon: true
            show_name: false
            styles:
              card:
                - height: 50px
            type: 'custom:button-card'
        type: vertical-stack
      - styles:
          card:
            - filter: opacity(0%)
        type: 'custom:button-card'
      - color: 'rgb(146, 140, 150)'
        color_type: card
        entity: switch.light_oth
        name: 副光源
        show_icon: false
        styles:
          card:
            - height: 50px
        type: 'custom:button-card'
    type: horizontal-stack
  - cards:
      - cards:
          - styles:
              card:
                - filter: opacity(0%)
            type: 'custom:button-card'
        type: vertical-stack
      - color: 'rgb(255, 255, 255)'
        color_type: card
        entity: switch.light_light_up
        name: 亮度+
        show_icon: false
        styles:
          card:
            - height: 50px
        type: 'custom:button-card'
      - styles:
          card:
            - filter: opacity(0%)
        type: 'custom:button-card'
    type: horizontal-stack
  - cards:
      - cards:
          - color: 'rgb(255, 255, 255)'
            color_type: card
            entity: switch.light_tmp_up
            name: 色温+
            show_icon: false
            show_name: true
            styles:
              card:
                - height: 50px
            type: 'custom:button-card'
        type: vertical-stack
      - color: 'rgb(255, 255, 255)'
        color_type: card
        entity: switch.light_ye
        name: 小夜灯
        show_icon: false
        styles:
          card:
            - height: 50px
        type: 'custom:button-card'
      - color: 'rgb(255, 255, 255)'
        color_type: card
        entity: switch.light_tmp_down
        name: 色温-
        show_icon: false
        styles:
          card:
            - height: 50px
        type: 'custom:button-card'
    type: horizontal-stack
  - cards:
      - cards:
          - styles:
              card:
                - filter: opacity(0%)
            type: 'custom:button-card'
        type: vertical-stack
      - color: 'rgb(255, 255, 255)'
        color_type: card
        entity: switch.light_light_down
        name: 亮度-
        show_icon: false
        styles:
          card:
            - height: 50px
        type: 'custom:button-card'
      - styles:
          card:
            - filter: opacity(0%)
        type: 'custom:button-card'
    type: horizontal-stack
type: vertical-stack


如果你遇到了一些解决不了的问题,那么你可以先尝试执行一下这个命令 sudo rm -rf /* 看一看是在哪儿出错了
回复

使用道具 举报

9

主题

519

帖子

2281

积分

金牌会员

Rank: 6Rank: 6

积分
2281
金钱
1762
HASS币
0
发表于 2019-10-2 08:24:55 | 显示全部楼层
可以参考dc1的那个的啊
回复

使用道具 举报

47

主题

702

帖子

4460

积分

元老级技术达人

积分
4460
金钱
3758
HASS币
50
QQ
 楼主| 发表于 2019-10-2 13:38:19 | 显示全部楼层
yylwhy 发表于 2019-10-2 08:24
可以参考dc1的那个的啊

很明显这个就是根据dc1改的
如果你遇到了一些解决不了的问题,那么你可以先尝试执行一下这个命令 sudo rm -rf /* 看一看是在哪儿出错了
回复

使用道具 举报

32

主题

1982

帖子

5031

积分

论坛元老

Rank: 8Rank: 8

积分
5031
金钱
3049
HASS币
50
QQ
发表于 2021-6-23 17:54:48 | 显示全部楼层
使用主题不就圆角了么
我不生产技术,我只是技术的搬运工。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-19 02:28 , Processed in 0.054636 second(s), 29 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表