Удалить тени кнопок на мягкой клавиатуре Adwaita тема Centos - PullRequest
0 голосов
/ 24 октября 2018

Я запускаю тему Adwaita на CentOS 7 и перенесен из Ubuntu.Я пытаюсь удалить тени кнопок при нажатии на программную клавиатуру в файле main.rc, переопределив растровое изображение.Это переход из НОРМАЛЬНОГО состояния в АКТИВНОЕ состояние при нажатии кнопки.Тень все еще сохраняется.

main.rc:

style "button" {

  xthickness = 2
  ythickness = 2

  # For the sake of sanity style buttons this way
  engine "pixmap" {

    ###########
    #Â Buttons #
    ###########

    image {
      function = SHADOW
    }

    image {
      function = BOX
      state    = NORMAL
      file     = "assets/button.png"
      border   = {4, 4, 4, 4}
      stretch  = TRUE
    }

    image {
      function = BOX
      state    = PRELIGHT
      shadow   = OUT
      file     = "assets/button-hover.png"
      border   = {4, 4, 4, 4}
      stretch  = TRUE
    }

    # Don't add hover effect on pressed buttons
    image {
      function = BOX
      state    = PRELIGHT
      shadow   = IN
      file     = "assets/button-active.png"
      border   = {4, 4, 4, 4}
      stretch  = TRUE
    }

    image {
      function = BOX
      state    = ACTIVE
      file     = "assets/button-active.png"
      border   = {4, 4, 4, 4}
      stretch  = TRUE
    }

    image {
      function = BOX
      state    = INSENSITIVE
      file     = "assets/button-insensitive.png"
      border   = {4, 4, 4, 4}
      stretch  = TRUE
    }
  }
}
...