mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-05-11 17:35:57 +08:00
Remove obsolete amarena decoration theme
Since ephemeral is not anti-aliased anymore, these two decoration themes serve exactly the same purpose.
This commit is contained in:
parent
7bb5239603
commit
f418845dba
2 changed files with 1 additions and 46 deletions
|
|
@ -1,44 +0,0 @@
|
|||
local gears = require("gears")
|
||||
local awful = require("awful")
|
||||
local wibox = require("wibox")
|
||||
local beautiful = require("beautiful")
|
||||
local helpers = require("helpers")
|
||||
local keys = require("keys")
|
||||
local decorations = require("decorations")
|
||||
|
||||
-- This decoration theme will round clients according to your theme's
|
||||
-- border_radius value
|
||||
-- Disable this if using `picom` to round your corners
|
||||
decorations.enable_rounding()
|
||||
|
||||
-- Button configuration
|
||||
local gen_button_size = dpi(10)
|
||||
local gen_button_shape = gears.shape.circle
|
||||
-- local gen_button_shape = helpers.rrect(dpi(4))
|
||||
local gen_button_margin = dpi(4)
|
||||
|
||||
-- Add a titlebar
|
||||
client.connect_signal("request::titlebars", function(c)
|
||||
awful.titlebar(c, {font = beautiful.titlebar_font, position = beautiful.titlebar_position, size = beautiful.titlebar_size}) : setup {
|
||||
nil,
|
||||
{
|
||||
buttons = keys.titlebar_buttons,
|
||||
font = beautiful.titlebar_font,
|
||||
align = beautiful.titlebar_title_align or "center",
|
||||
widget = beautiful.titlebar_title_enabled and awful.titlebar.widget.titlewidget(c) or wibox.widget.textbox("")
|
||||
},
|
||||
{
|
||||
-- Generated buttons
|
||||
decorations.button(c, gen_button_shape, x.color3, x.color3.."55", x.color11, gen_button_size, gen_button_margin, "minimize"),
|
||||
decorations.button(c, gen_button_shape, x.color4, x.color4.."55", x.color12, gen_button_size, gen_button_margin, "maximize"),
|
||||
decorations.button(c, gen_button_shape, x.color1, x.color1.."55", x.color9, gen_button_size, gen_button_margin, "close"),
|
||||
-- decorations.text_button(c, "", "Material Icons 9", x.color1, gen_button_color_unfocused, x.color9, gen_button_size, gen_button_margin, "close"),
|
||||
|
||||
-- Create some extra padding at the edge
|
||||
helpers.horizontal_pad(dpi(6)),
|
||||
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
layout = wibox.layout.align.horizontal
|
||||
}
|
||||
end)
|
||||
|
|
@ -26,9 +26,8 @@ local decoration_themes = {
|
|||
"lovelace", -- 1 -- Standard titlebar with 3 buttons (close, max, min)
|
||||
"skyfall", -- 2 -- No buttons, only title
|
||||
"ephemeral", -- 3 -- Text-generated titlebar buttons
|
||||
"amarena", -- 4 -- Text-generated titlebar buttons
|
||||
}
|
||||
local decoration_theme = decoration_themes[4]
|
||||
local decoration_theme = decoration_themes[3]
|
||||
-- ===================================================================
|
||||
-- Statusbar themes. Multiple bars can be declared in each theme.
|
||||
local bar_themes = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue