summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/aerc.go35
1 files changed, 17 insertions, 18 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index 8671c87..16fe8b7 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -14,7 +14,6 @@ import (
 	"git.sr.ht/~sircmpwn/aerc/config"
 	"git.sr.ht/~sircmpwn/aerc/lib"
 	"git.sr.ht/~sircmpwn/aerc/lib/ui"
-	libui "git.sr.ht/~sircmpwn/aerc/lib/ui"
 )
 
 type Aerc struct {
@@ -23,15 +22,15 @@ type Aerc struct {
 	cmdHistory  lib.History
 	complete    func(cmd string) []string
 	conf        *config.AercConfig
-	focused     libui.Interactive
-	grid        *libui.Grid
+	focused     ui.Interactive
+	grid        *ui.Grid
 	logger      *log.Logger
 	simulating  int
-	statusbar   *libui.Stack
+	statusbar   *ui.Stack
 	statusline  *StatusLine
 	pendingKeys []config.KeyStroke
-	prompts     *libui.Stack
-	tabs        *libui.Tabs
+	prompts     *ui.Stack
+	tabs        *ui.Tabs
 	beep        func() error
 }
 
@@ -39,18 +38,18 @@ func NewAerc(conf *config.AercConfig, logger *log.Logger,
 	cmd func(cmd []string) error, complete func(cmd string) []string,
 	cmdHistory lib.History) *Aerc {
 
-	tabs := libui.NewTabs()
+	tabs := ui.NewTabs()
 
 	statusbar := ui.NewStack()
 	statusline := NewStatusLine()
 	statusbar.Push(statusline)
 
-	grid := libui.NewGrid().Rows([]libui.GridSpec{
-		{libui.SIZE_EXACT, 1},
-		{libui.SIZE_WEIGHT, 1},
-		{libui.SIZE_EXACT, 1},
-	}).Columns([]libui.GridSpec{
-		{libui.SIZE_WEIGHT, 1},
+	grid := ui.NewGrid().Rows([]ui.GridSpec{
+		{ui.SIZE_EXACT, 1},
+		{ui.SIZE_WEIGHT, 1},
+		{ui.SIZE_EXACT, 1},
+	}).Columns([]ui.GridSpec{
+		{ui.SIZE_WEIGHT, 1},
 	})
 	grid.AddChild(tabs.TabStrip)
 	grid.AddChild(tabs.TabContent).At(1, 0)
@@ -66,7 +65,7 @@ func NewAerc(conf *config.AercConfig, logger *log.Logger,
 		logger:     logger,
 		statusbar:  statusbar,
 		statusline: statusline,
-		prompts:    libui.NewStack(),
+		prompts:    ui.NewStack(),
 		tabs:       tabs,
 	}
 
@@ -144,8 +143,8 @@ func (aerc *Aerc) Children() []ui.Drawable {
 	return aerc.grid.Children()
 }
 
-func (aerc *Aerc) OnInvalidate(onInvalidate func(d libui.Drawable)) {
-	aerc.grid.OnInvalidate(func(_ libui.Drawable) {
+func (aerc *Aerc) OnInvalidate(onInvalidate func(d ui.Drawable)) {
+	aerc.grid.OnInvalidate(func(_ ui.Drawable) {
 		onInvalidate(aerc)
 	})
 }
@@ -158,7 +157,7 @@ func (aerc *Aerc) Focus(focus bool) {
 	// who cares
 }
 
-func (aerc *Aerc) Draw(ctx *libui.Context) {
+func (aerc *Aerc) Draw(ctx *ui.Context) {
 	aerc.grid.Draw(ctx)
 }
 
@@ -348,7 +347,7 @@ func (aerc *Aerc) PushError(text string) {
 	aerc.PushStatus(text, 10*time.Second).Color(tcell.ColorDefault, tcell.ColorRed)
 }
 
-func (aerc *Aerc) focus(item libui.Interactive) {
+func (aerc *Aerc) focus(item ui.Interactive) {
 	if aerc.focused == item {
 		return
 	}
'n233' href='#n233'>233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530