<import src="../../../common/head.wxml" />
<import src="../../../common/foot.wxml" />

<view class="container page" data-weui-theme="{{theme}}">
  <template is="head" data="{{title: 'get/set/ScreenBrightness'}}"/>

  <view class="page-body">
    <view class="page-body-info">
      <view class="page-body-title">当前屏幕亮度</view>
      <text class="page-body-text-screen-brightness">{{screenBrightness}}</text>
    </view>
    <view class="page-section page-section-gap">
      <view class="page-section-title">设置屏幕亮度</view>
      <view class="body-view">
        <slider bindchange="changeBrightness" value="{{screenBrightness}}" min="0" max="1" step="0.1"/>
      </view>
    </view>
  </view>

  <template is="foot" />
</view>
