db-schema-visualizer icon indicating copy to clipboard operation
db-schema-visualizer copied to clipboard

Headercolor is random

Open deniszagitov opened this issue 1 year ago • 3 comments

Hello! Thank you for this plugin! Could you please set the table's color according to table settings (https://dbml.dbdiagram.io/docs/#table-settings)?

Table users [headercolor: #3498DB] {
    id integer [primary key]
    username varchar(255) [not null, unique]
}

It's also would be nice to save position of existing tables on canvas)

deniszagitov avatar May 02 '24 16:05 deniszagitov

Hello @denis-mrd ! Thanks for the interesting feedback.

I note two things to add

  • the use of the table color defined in the DBML code
  • saving table positions when exiting a file so that they can be restored when returning to it.

But I think that the second ( saving table positions ) will be implemented before the first, as its absence makes the experience a little unpleasant.

BOCOVO avatar May 07 '24 23:05 BOCOVO

@BOCOVO you can use this repo as an example: https://github.com/denis-mrd/dbdiagram-oss

deniszagitov avatar May 08 '24 10:05 deniszagitov

@BOCOVO you can use this repo as an example: https://github.com/denis-mrd/dbdiagram-oss

Interesting ! Thank you @denis-mrd

BOCOVO avatar May 09 '24 00:05 BOCOVO

Hey @denis-mrd ! I've just released the tables position saving in the 0.1.0 version 🔥

BOCOVO avatar Jun 16 '24 13:06 BOCOVO

Yeah, it is working! Awesome! Could you please implement "the headercolor" as well?)

deniszagitov avatar Jun 17 '24 06:06 deniszagitov

Hi, I just make a PR for supporting headercolor of table setting. Hope it helps

tv-long avatar Jun 19 '24 15:06 tv-long

Hi @tv-long !

I just merge your pull request add also release the feature in the 0.2.0 version 🔥 . The feature help improve the project. Thank you a lot.

Looking forward to more contributions from you in the future !

BOCOVO avatar Jun 19 '24 21:06 BOCOVO

🔥🔥🔥 Thank you guys very much! I'm going to switch to developing a model with this tool next month

deniszagitov avatar Jun 21 '24 12:06 deniszagitov